c**t 发帖数: 2744 | 1 When I run 'make', I get the following message:
ld.so.1: make: fatal: relocation error: file make: symbol _setlocale: referenced symbol not found
Killed
What's wrong? I can compile files with command line mode.
Help me! |
m*******m 发帖数: 182 | 2 Your 'make' uses different(out-of-date or wrong) library.
Get a new 'make' or
update your libraries. Do a 'ldd make' to see what
libraries it depends on,
and if they are the one on your system.
【在 c**t 的大作中提到】 : When I run 'make', I get the following message: : : ld.so.1: make: fatal: relocation error: file make: symbol _setlocale: referenced symbol not found : Killed : What's wrong? I can compile files with command line mode. : Help me!
|
c**t 发帖数: 2744 | 3
/usr/local/bin> ldd make
libelf.so.1 => /usr/lib//libelf.so.1
libsocket.so.1 => /usr/lib//libsocket.so.1
libc.so.1 => /usr/lib//libc.so.1
libnsl.so.1 => /usr/lib//libnsl.so.1
libdl.so.1 => /usr/lib//libdl.so.1
libmp.so.2 => /usr/lib//libmp.so.2
Then, how to revise? Thanks
【在 m*******m 的大作中提到】 : Your 'make' uses different(out-of-date or wrong) library. : Get a new 'make' or : update your libraries. Do a 'ldd make' to see what : libraries it depends on, : and if they are the one on your system.
|
m*******m 发帖数: 182 | 4
Check if you have these libs at the right location.
【在 c**t 的大作中提到】 : : /usr/local/bin> ldd make : libelf.so.1 => /usr/lib//libelf.so.1 : libsocket.so.1 => /usr/lib//libsocket.so.1 : libc.so.1 => /usr/lib//libc.so.1 : libnsl.so.1 => /usr/lib//libnsl.so.1 : libdl.so.1 => /usr/lib//libdl.so.1 : libmp.so.2 => /usr/lib//libmp.so.2 : Then, how to revise? Thanks
|
c**t 发帖数: 2744 | 5
Yes, they are there.
I add /usr/lib to PATH. It doesn't work. 8-(
【在 m*******m 的大作中提到】 : : Check if you have these libs at the right location.
|
D****N 发帖数: 430 | 6 Funny. My make is located at /usr/bin instead of /usr/local/bin
did you check to see if you've a /usr/bin/make and ldd that?
The libraries are there probably, but ldd won't know more than that..
You didn't say:
-Which platform is this? linux? Solaris2.4? 2.5?
-Can you run make at all?
Best thing to do seems to be getting a new version of make or see if you have
something like gmake which is just the same thing as gnu make...
【在 m*******m 的大作中提到】 : : Check if you have these libs at the right location.
|
m*******m 发帖数: 182 | 7 Good point. Check to see if your put /usr/local/bin ahead
of /usr/bin in your
path.
【在 D****N 的大作中提到】 : Funny. My make is located at /usr/bin instead of /usr/local/bin : did you check to see if you've a /usr/bin/make and ldd that? : The libraries are there probably, but ldd won't know more than that.. : You didn't say: : -Which platform is this? linux? Solaris2.4? 2.5? : -Can you run make at all? : Best thing to do seems to be getting a new version of make or see if you have : something like gmake which is just the same thing as gnu make...
|
c**t 发帖数: 2744 | 8
No.
$PATH
/home/cogt/bin:.:..:/home/proj/esps/bin:.:/opt/SUNWspro/bin:/bin:
/usr/bin:/usr/local/bin:/usr/local/include:/usr/ccs/bin:/usr/openwin/bin:/usr/ucb:
/usr/sbin:/opt/s32cdsp/bin5:
【在 m*******m 的大作中提到】 : Good point. Check to see if your put /usr/local/bin ahead : of /usr/bin in your : path.
|
c**t 发帖数: 2744 | 9
ldd is located at /usr/bin
make is located at /usr/local/bin
I don't have the privilege to install software. 8-(
【在 D****N 的大作中提到】 : Funny. My make is located at /usr/bin instead of /usr/local/bin : did you check to see if you've a /usr/bin/make and ldd that? : The libraries are there probably, but ldd won't know more than that.. : You didn't say: : -Which platform is this? linux? Solaris2.4? 2.5? : -Can you run make at all? : Best thing to do seems to be getting a new version of make or see if you have : something like gmake which is just the same thing as gnu make...
|
w*****n 发帖数: 94 | 10
You propbaly can install make in your home tree.
【在 c**t 的大作中提到】 : : ldd is located at /usr/bin : make is located at /usr/local/bin : I don't have the privilege to install software. 8-(
|
c**t 发帖数: 2744 | 11
Unfortunately, I cannot. 8-(
【在 w*****n 的大作中提到】 : : You propbaly can install make in your home tree.
|