Results 1 to 8 of 8
I am using Centos5
While installing the iscsitarget-1.4.19 i am facing the below error
[root@linuxbox iscsitarget-1.4.19]# make install
`usr/ietd' -> `/usr/sbin/ietd'
`usr/ietadm' -> `/usr/sbin/ietadm'
`etc/initd/initd.redhat' -> `/etc/init.d/iscsi-target'
`doc/manpages/ietadm.8' -> `/usr/share/man/man8/ietadm.8'
...
- 01-18-2010 #1Just Joined!
- Join Date
- Mar 2008
- Posts
- 63
make: *** [depmod] Error 127
I am using Centos5
While installing the iscsitarget-1.4.19 i am facing the below error
[root@linuxbox iscsitarget-1.4.19]# make install
`usr/ietd' -> `/usr/sbin/ietd'
`usr/ietadm' -> `/usr/sbin/ietadm'
`etc/initd/initd.redhat' -> `/etc/init.d/iscsi-target'
`doc/manpages/ietadm.8' -> `/usr/share/man/man8/ietadm.8'
`doc/manpages/ietd.8' -> `/usr/share/man/man8/ietd.8'
`doc/manpages/ietd.conf.5' -> `/usr/share/man/man5/ietd.conf.5'
`ChangeLog' -> `/usr/share/doc/iscsitarget/ChangeLog'
`COPYING' -> `/usr/share/doc/iscsitarget/COPYING'
`RELEASE_NOTES' -> `/usr/share/doc/iscsitarget/RELEASE_NOTES'
`README' -> `/usr/share/doc/iscsitarget/README'
`README.vmware' -> `/usr/share/doc/iscsitarget/README.vmware'
`README.initiators' -> `/usr/share/doc/iscsitarget/README.initiators'
`kernel/iscsi_trgt.ko' -> `/lib/modules/2.6.18-164.9.1.el5/extra/iscsi/iscsi_trgt.ko'
Running depmod
/bin/sh: line 3: depmod: command not found
make: *** [depmod] Error 127
[root@linuxbox iscsitarget-1.4.19]#
- 01-18-2010 #2Just Joined!
- Join Date
- Mar 2008
- Posts
- 63
i would like to share one more thing , before make install i also face below error when i rum make command
make
cc: /lib/modules/2.6.18-164.10.1.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
cc: /lib/modules/2.6.18-164.10.1.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[1]: Entering directory `/usr/src/iscsitarget/iscsitarget-0.4.17'
Reversing patch compat-2.6.14-2.6.18.patch
patching file kernel/iscsi.h
patching file kernel/digest.c
patching file kernel/file-io.c
patching file kernel/iscsi.c
patching file kernel/tio.c
Reversing patch compat-2.6.19-2.6.21.patch
patching file kernel/event.c
patching file kernel/iscsi.c
patching file kernel/tio.c
Reversing patch compat-2.6.22-2.6.23.patch
patching file kernel/block-io.c
patching file kernel/config.c
patching file kernel/digest.c
patching file kernel/event.c
make[1]: Leaving directory `/usr/src/iscsitarget/iscsitarget-0.4.17'
make -C usr
make[1]: Entering directory `/usr/src/iscsitarget/iscsitarget-0.4.17/usr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/iscsitarget/iscsitarget-0.4.17/usr'
make -C /lib/modules/2.6.18-164.10.1.el5/build SUBDIRS=/usr/src/iscsitarget/iscsitarget-0.4.17/kernel modules
make: *** /lib/modules/2.6.18-164.10.1.el5/build: No such file or directory. Stop.
make: *** [kernel] Error 2
[root@linuxbox iscsitarget-0.4.17]#
- 01-18-2010 #3Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Do you run the configuration tool? Most source packages on Linux have a script in the root installation directory called 'configure'. You usually need to run that first: ./configure
Next, it seems that you are missing the program/script called depmod. That should be part of the linux compiler tools, so you might want to make sure you have all the compiler tools installed. Sorry, but I'm on vacation right now and this is a Windoze system so I cannot tell you off-hand what the package name happens to be, though it should be something like "gnu-tools" or "development-tools" or such like.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 01-18-2010 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Actually, depmod should be part of the standard system, now that I think about it. It should be in /sbin which is not part of a normal user's path. To fix that, add /sbin to your PATH environment variable with the command: export PATH=${PATH}:/sbin
You might want to add this command to your ~/.bash_profile script so it sets your PATH correctly every time you log in.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 01-19-2010 #5Just Joined!
- Join Date
- Mar 2008
- Posts
- 63
My problem is resolved
i used the ietd to configure san . i was actually not able to configure SAN but by the help of the below article i successed
Get It Fixed: How to create an iSCSI Target on Centos 5.3
- 01-19-2010 #6Just Joined!
- Join Date
- Mar 2008
- Posts
- 63
i also wrote an BLOG on "How to Create Virtual SAN" so people can help.... I tried my best to put more information in the BLOG. Sorry If there is any mistake
Howto Create Virtual SAN Zahidhaseeb's Blog
- 2 Weeks Ago #7Just Joined!
- Join Date
- May 2012
- Posts
- 1
Make returns error 127
Following are the values the make returns.
0 - if all makefiles were successfully parsed and no targets that were built failed
1 - if the -q flag was used and make determines that a target needs to be rebuilt
2 - if any errors were encountered.
and any errors numbers of form,
‘[foo] Error NN’
‘[foo] signal description’
These errors are not really make errors at all. They mean that a program that make invoked as part of a recipe returned a non-0 error code (‘Error NN’), which make interprets as failure, or it exited in some other abnormal fashion (with a signal of some type).
If no *** is attached to the message, then the subprocess failed but the rule in the makefile was prefixed with the - special character, so make ignored the error.
So, here the case of make returning the value of 127, is returned by the shell not by make. Please refer man page of bash.
Prabhu
- 2 Weeks Ago #8forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,096
Guys, this thread is almost 2 1/2 years old so I'm closing it, but if any of you are still having problems, please feel free to start a fresh thread.
Thank you.oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.



