Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

cannot install iscsitarget on centos

Posted on 2009-04-07
3
Medium Priority
?
855 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 2000 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

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

Preface There are many applications where some computing systems need have their system clocks running synchronized within a small margin and eventually need to be in sync with the global time. There are different solutions for this, i.e. the W3…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
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.
Suggested Courses
Course of the Month9 days, 10 hours left to enroll

879 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