How to compile and install Kokkos on an Ubuntu system

Dear lammpser

I installed lammps successfully in Ubuntu system.
recently, i wanna install Kokkos.
At first at /opt/lammps/src, sudo make yes-Kokkos
But it shows as follows
Installed YES: package KOKKOS
src/atom_vec_dipole_kokkos.cpp does not exist
src/atom_vec_dpd_kokkos.cpp does not exist
src/atom_vec_spin_kokkos.cpp does not exist
src/compute_ave_sphere_atom_kokkos.cpp does not exist
src/compute_composition_atom_kokkos.cpp does not exist
src/dynamical_matrix_kokkos.cpp does not exist
src/fix_dpd_energy_kokkos.cpp does not exist
src/fix_eos_table_rx_kokkos.cpp does not exist
src/fix_freeze_kokkos.cpp does not exist
src/fix_rx_kokkos.cpp does not exist
src/fix_shake_kokkos.cpp does not exist
src/fix_shardlow_kokkos.cpp does not exist
src/fix_wall_gran_kokkos.cpp does not exist
src/fix_wall_gran_old.cpp does not exist
src/mliap_data_kokkos.cpp does not exist
src/mliap_descriptor_so3_kokkos.cpp does not exist
src/mliap_model_linear_kokkos.cpp does not exist
src/mliap_model_python_kokkos.cpp does not exist
src/mliap_so3_kokkos.cpp does not exist
src/mliap_unified_kokkos.cpp does not exist
src/nbin_ssa_kokkos.cpp does not exist
src/npair_ssa_kokkos.cpp does not exist
src/pair_dpd_ext_kokkos.cpp does not exist
src/pair_dpd_ext_tstat_kokkos.cpp does not exist
src/pair_dpd_fdt_energy_kokkos.cpp does not exist
src/pair_dpd_kokkos.cpp does not exist
src/pair_dpd_tstat_kokkos.cpp does not exist
src/pair_exp6_rx_kokkos.cpp does not exist
src/pair_gran_hooke_history_kokkos.cpp does not exist
src/pair_lj_cut_coul_debye_kokkos.cpp does not exist
src/pair_lj_cut_coul_dsf_kokkos.cpp does not exist
src/pair_lj_cut_dipole_cut_kokkos.cpp does not exist
src/pair_lj_expand_coul_long_kokkos.cpp does not exist
src/pair_lj_gromacs_coul_gromacs_kokkos.cpp does not exist
src/pair_lj_gromacs_kokkos.cpp does not exist
src/pair_lj_spica_kokkos.cpp does not exist
src/pair_mliap_kokkos.cpp does not exist
src/pair_multi_lucy_rx_kokkos.cpp does not exist
src/pair_pace_extrapolation_kokkos.cpp does not exist
src/pair_pace_kokkos.cpp does not exist
src/pair_snap_kokkos.cpp does not exist
src/pair_table_rx_kokkos.cpp does not exist
src/pair_yukawa_colloid_kokkos.cpp does not exist
src/third_order_kokkos.cpp does not exist
src/atom_vec_dipole_kokkos.h does not exist
src/atom_vec_dpd_kokkos.h does not exist
src/atom_vec_spin_kokkos.h does not exist
src/compute_ave_sphere_atom_kokkos.h does not exist
src/compute_composition_atom_kokkos.h does not exist
src/dynamical_matrix_kokkos.h does not exist
src/fix_dpd_energy_kokkos.h does not exist
src/fix_eos_table_rx_kokkos.h does not exist
src/fix_freeze_kokkos.h does not exist
src/fix_rx_kokkos.h does not exist
src/fix_shake_kokkos.h does not exist
src/fix_shardlow_kokkos.h does not exist
src/fix_wall_gran_kokkos.h does not exist
src/fix_wall_gran_old.h does not exist
src/mliap_data_kokkos.h does not exist
src/mliap_descriptor_kokkos.h does not exist
src/mliap_descriptor_so3_kokkos.h does not exist
src/mliap_model_kokkos.h does not exist
src/mliap_model_linear_kokkos.h does not exist
src/mliap_model_python_kokkos.h does not exist
src/mliap_so3_kokkos.h does not exist
src/mliap_unified_kokkos.h does not exist
src/nbin_ssa_kokkos.h does not exist
src/npair_ssa_kokkos.h does not exist
src/pair_dpd_ext_kokkos.h does not exist
src/pair_dpd_ext_tstat_kokkos.h does not exist
src/pair_dpd_fdt_energy_kokkos.h does not exist
src/pair_dpd_kokkos.h does not exist
src/pair_dpd_tstat_kokkos.h does not exist
src/pair_exp6_rx_kokkos.h does not exist
src/pair_gran_hooke_history_kokkos.h does not exist
src/pair_lj_cut_coul_debye_kokkos.h does not exist
src/pair_lj_cut_coul_dsf_kokkos.h does not exist
src/pair_lj_cut_dipole_cut_kokkos.h does not exist
src/pair_lj_expand_coul_long_kokkos.h does not exist
src/pair_lj_gromacs_coul_gromacs_kokkos.h does not exist
src/pair_lj_gromacs_kokkos.h does not exist
src/pair_lj_spica_kokkos.h does not exist
src/pair_mliap_kokkos.h does not exist
src/pair_multi_lucy_rx_kokkos.h does not exist
src/pair_pace_extrapolation_kokkos.h does not exist
src/pair_pace_kokkos.h does not exist
src/pair_snap_kokkos.h does not exist
src/pair_snap_kokkos_impl.h does not exist
src/pair_table_rx_kokkos.h does not exist
src/pair_yukawa_colloid_kokkos.h does not exist
src/sna_kokkos.h does not exist
src/sna_kokkos_impl.h does not exist
src/third_order_kokkos.h does not exist

what should i do and how to deal with it?

very, VERY bad idea to use “sudo” here. There is no need at all for superuser privileges.

This all looks ok. It just informs you that it skips over files that depend on other packages that you have not installed.

You don’t seem very familiar with compiling. In that case you should consider using the CMake based build system and some of the provided preset files.

For details, please carefully study the LAMMPS documentation which explains how to build LAMMPS from source in great detail (you just have to read it and not skip ahead).