由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Help on 'make'
相关主题
Re: Help on 'make' & More info!where is libstdc++
按你们的经验,这个错误是由什么引起的?急:ld.so.1的问题
helpInvalid ELF header Re: 问一个shell script的问题
一个ssh问题Re: 急问:UNIX (SOLARIS 7。0)中C++ COMPILER命令到底是什么呀?
[转载] How to keep unreference symboles during linking? (g++)怎样创造一个 segv (转载)
[转载] .SO no symbol?sed? awk? or mak a program?
PATH and newgrp problem[转载] 谁能给我看看它的shadow文件?
how to setup lib path?[转载] 问一个 shell script 和 rsh 的问题
相关话题的讨论汇总
话题: usr话题: make话题: bin话题: lib话题: ldd
进入Unix版参与讨论
1 (共1页)
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.

1 (共1页)
进入Unix版参与讨论
相关主题
[转载] 问一个 shell script 和 rsh 的问题[转载] How to keep unreference symboles during linking? (g++)
[转载] what does this mean?[转载] .SO no symbol?
CGI之Perl Script一问PATH and newgrp problem
怎么回事?!how to setup lib path?
Re: Help on 'make' & More info!where is libstdc++
按你们的经验,这个错误是由什么引起的?急:ld.so.1的问题
helpInvalid ELF header Re: 问一个shell script的问题
一个ssh问题Re: 急问:UNIX (SOLARIS 7。0)中C++ COMPILER命令到底是什么呀?
相关话题的讨论汇总
话题: usr话题: make话题: bin话题: lib话题: ldd