Solved

cannot install iscsitarget on centos

Posted on 2009-04-07
3
828 Views
Last Modified: 2013-12-15
I am trying to install iscsitarget on centos 5
I keep getting this error
what does it mean?

[root@lb1 iscsitarget-0.4.17]# make
cc: /lib/modules/2.6.18-53.1.14.el5/build/include/linux/version.h: No such file or directory
cc: no input files
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -lt: unary operator expected
make -C usr
make[1]: Entering directory `/iscsitarget-0.4.17/usr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/iscsitarget-0.4.17/usr'
make -C /lib/modules/2.6.18-53.1.14.el5/build SUBDIRS=/iscsitarget-0.4.17/kernel modules
make: *** /lib/modules/2.6.18-53.1.14.el5/build: No such file or directory.  Stop.
make: *** [kernel] Error 2
[root@lb1 iscsitarget-0.4.17]#
0
Comment
Question by:moruda
  • 2
3 Comments
 
LVL 19

Expert Comment

by:jools
ID: 24095154
have you installed the kernel dev and headers on your system?

0
 
LVL 19

Accepted Solution

by:
jools earned 500 total points
ID: 24096693
Just had a quick look on one of my systems, check to see if you have kernel-devel and kernel-headers;
   $ rpm -qa | grep kernel
   kernel-2.6.18-92.1.22.el5
   kernel-headers-2.6.18-92.1.22.el5
   kernel-devel-2.6.18-92.1.22.el5

If there are not there then use yum to install;
   $ yum install kernel-devel

etc.

0
 

Author Comment

by:moruda
ID: 24097897
i did that and it still didnt work
ended up doing a yum update kernel
restarted and it worked

thanks
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question