Solved

cannot install iscsitarget on centos

Posted on 2009-04-07
3
837 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Hello, As I have seen there a lot of requests regarding monitoring and reporting for exchange 2007 / 2010 / 2013 I have decided to post some thoughts together and link to articles that have helped me. Of course a lot of information you can get…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

615 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