Solved

cannot install iscsitarget on centos

Posted on 2009-04-07
3
831 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
If, like me, you have a lot of Dell servers in the estate you manage this article should save you a little time. When attempting to login to iDrac on any server I would be presented with two errors. The first reads "Do you want to run this applicati…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

734 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