Solved

cannot install iscsitarget on centos

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

759 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now