trying to install on centos7
StCremer opened this issue · 7 comments
hi!
i'm trying to install echance on centos 7 and getting this error
[st.cremer@user01-Pk enhanceio]$ make && make install
rpmbuild -bp --target=uname -m
/usr/src/redhat/SPECS/kernel.spec 2>&1 | tee dirname /usr/src/redhat/SPECS/kernel.spec
/prep.log
tee: /usr/src/redhat/SPECS/prep.log: Нет такого файла или каталога
ошибка: невозможно получить информацию о /usr/src/redhat/SPECS/kernel.spec: Нет такого файла или каталога
Платформы для сборки: x86_64
Сборка для платформы x86_64
make: *** [/usr/src/redhat/BUILD/kernel-2.6.18/linux-3.10.0-327.36.3.el7.x86_64.x86_64] Ошибка 1
can you post the output of /etc/redhat-release?
I guess your CentOS version is similar to 7.xx5xx which triggers Centos 5.x build process.
You can get rid of lines 10 to 26 and 60 to 65. Also remove $(RHEL5_SETUP) from line 44.
No need to do that @rezass
As you know somewhere in the makefile is a grep 5.[0-9]
. This can be easily solved by replacing it with grep 5[.][0-9]
.
As a prrgrammer i had same thoughts while looking through mkefile code) But i do not know C.
thanks for help! I'll try!
Hi! I'm trying too but can't load modules.
modprobe: ERROR: could not insert 'enhanceio_fifo': Exec format error
modprobe: ERROR: could not insert 'enhanceio_lru': Exec format error
modprobe: ERROR: could not insert 'enhanceio': Exec format error
build log:
make -C /lib/modules/3.10.0-327.36.3.el7.x86_64/build M=/home/igro/EnhanceIO/Dri ver/enhanceio modules V=0
make[1]: Entering directory/usr/src/kernels/3.10.0-327.36.3.el7.x86_64' CC [M] /home/igro/EnhanceIO/Driver/enhanceio/eio_conf.o /home/igro/EnhanceIO/Driver/enhanceio/eio_conf.c:105:0: warning: "smp_mb__after_ atomic" redefined [enabled by default] #define smp_mb__after_atomic smp_mb__after_clear_bit ^ In file included from /usr/src/kernels/3.10.0-327.36.3.el7.x86_64/arch/x86/inclu de/asm/bitops.h:17:0, from include/linux/bitops.h:33, from include/linux/kernel.h:10, from /usr/src/kernels/3.10.0-327.36.3.el7.x86_64/arch/x86/inclu de/asm/percpu.h:44, from /usr/src/kernels/3.10.0-327.36.3.el7.x86_64/arch/x86/inclu de/asm/current.h:5, from /usr/src/kernels/3.10.0-327.36.3.el7.x86_64/arch/x86/inclu de/asm/processor.h:15, from /usr/src/kernels/3.10.0-327.36.3.el7.x86_64/arch/x86/inclu de/asm/atomic.h:6, from /home/igro/EnhanceIO/Driver/enhanceio/eio.h:36, from /home/igro/EnhanceIO/Driver/enhanceio/eio_conf.c:39: /usr/src/kernels/3.10.0-327.36.3.el7.x86_64/arch/x86/include/asm/barrier.h:92:0 note: this is the location of the previous definition #define smp_mb__after_atomic() barrier() ^ CC [M] /home/igro/EnhanceIO/Driver/enhanceio/eio_ioctl.o CC [M] /home/igro/EnhanceIO/Driver/enhanceio/eio_main.o CC [M] /home/igro/EnhanceIO/Driver/enhanceio/eio_mem.o CC [M] /home/igro/EnhanceIO/Driver/enhanceio/eio_policy.o CC [M] /home/igro/EnhanceIO/Driver/enhanceio/eio_procfs.o CC [M] /home/igro/EnhanceIO/Driver/enhanceio/eio_setlru.o CC [M] /home/igro/EnhanceIO/Driver/enhanceio/eio_subr.o CC [M] /home/igro/EnhanceIO/Driver/enhanceio/eio_ttc.o /home/igro/EnhanceIO/Driver/enhanceio/eio_ttc.c:40:0: warning: "smp_mb__after_at omic" redefined [enabled by default] #define smp_mb__after_atomic smp_mb__after_clear_bit ^ In file included from /usr/src/kernels/3.10.0-327.36.3.el7.x86_64/arch/x86/inclu de/asm/bitops.h:17:0, from include/linux/bitops.h:33, from include/linux/kernel.h:10, from include/linux/sched.h:15, from include/linux/blkdev.h:4, from /home/igro/EnhanceIO/Driver/enhanceio/eio_ttc.c:28: /usr/src/kernels/3.10.0-327.36.3.el7.x86_64/arch/x86/include/asm/barrier.h:92:0 note: this is the location of the previous definition #define smp_mb__after_atomic() barrier() ^ CC [M] /home/igro/EnhanceIO/Driver/enhanceio/eio_fifo.o CC [M] /home/igro/EnhanceIO/Driver/enhanceio/eio_lru.o CC [M] /home/igro/EnhanceIO/Driver/enhanceio/eio_rand.o LD [M] /home/igro/EnhanceIO/Driver/enhanceio/enhanceio.o LD [M] /home/igro/EnhanceIO/Driver/enhanceio/enhanceio_lru.o LD [M] /home/igro/EnhanceIO/Driver/enhanceio/enhanceio_fifo.o LD [M] /home/igro/EnhanceIO/Driver/enhanceio/enhanceio_rand.o Building modules, stage 2. MODPOST 4 modules CC /home/igro/EnhanceIO/Driver/enhanceio/enhanceio.mod.o LD [M] /home/igro/EnhanceIO/Driver/enhanceio/enhanceio.ko CC /home/igro/EnhanceIO/Driver/enhanceio/enhanceio_fifo.mod.o LD [M] /home/igro/EnhanceIO/Driver/enhanceio/enhanceio_fifo.ko CC /home/igro/EnhanceIO/Driver/enhanceio/enhanceio_lru.mod.o LD [M] /home/igro/EnhanceIO/Driver/enhanceio/enhanceio_lru.ko CC /home/igro/EnhanceIO/Driver/enhanceio/enhanceio_rand.mod.o LD [M] /home/igro/EnhanceIO/Driver/enhanceio/enhanceio_rand.ko make[1]: Leaving directory
/usr/src/kernels/3.10.0-327.36.3.el7.x86_64'
May be key "--force" will help but in future it may be cause of weird errors.
@StCremer установил нет?
try this fork https://github.com/lanconnected/EnhanceIO , it is rhel7-compatible.
@lanconnected thank for reply.
i think i missed dkms 🤣
upgraded distro and will reboot in 2 hours then will try again. if it wouldn't work then will try that fork.
@lanconnected after update things become even worse.
this fork installed without any problems :)
Thank again 👍