由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Invalid ELF header Re: 问一个shell script的问题
相关主题
问一个shell script的问题急:ld.so.1的问题
Questions about libg++大家都是用什么机子装UNIX?
how to set include PATHconfused by some shell scripts run on mac (转载)
helpHow to set environment variables for CGI scripts?
Help on 'make'HELP:a problem about VMS remote archive
按你们的经验,这个错误是由什么引起的?如何解压*.tar.bz2文件?请教!
how to setup lib path?can I reinstall the whole system without format dsk?
where is libstdc++Which package to contains ANSI C headers in IRIX?
相关话题的讨论汇总
话题: elf话题: library话题: invalid话题: ld话题: header
进入Unix版参与讨论
1 (共1页)
g******a
发帖数: 730
1
I added the following lines to solve the previous problem:
LD_LIBRARY_PATH=$PADHOME/tcl8.0/lib:$PADHOME/tk8.0/lib
export LD_LIBRARY_PATH
BUt I got the erro msg:
invalid ELF header
Could anyone tell me how to deal with this? I googled and found many ppl
have such problems, but don't know hlow to tackle this by myself. THanks.
w**n
发帖数: 88
2
do a "file library_executable_name.so", what do you get? and what is
your current running platform(OS? Arch?)

【在 g******a 的大作中提到】
: I added the following lines to solve the previous problem:
: LD_LIBRARY_PATH=$PADHOME/tcl8.0/lib:$PADHOME/tk8.0/lib
: export LD_LIBRARY_PATH
: BUt I got the erro msg:
: invalid ELF header
: Could anyone tell me how to deal with this? I googled and found many ppl
: have such problems, but don't know hlow to tackle this by myself. THanks.

g******a
发帖数: 730
3
it says:
libtk8.0.so: current ar archive
I reinstalled tcl/tk,so it seems that I should have installed tcl/tk correctly.
I am working on Debian Linux 3.0
//bow~~~

【在 w**n 的大作中提到】
: do a "file library_executable_name.so", what do you get? and what is
: your current running platform(OS? Arch?)

t**c
发帖数: 97
4
there's something wrong in your system, "current ar archive" usually means it's a static library file,
but you're looking for a shared one.
why not use the debian's default tk library?

【在 g******a 的大作中提到】
: it says:
: libtk8.0.so: current ar archive
: I reinstalled tcl/tk,so it seems that I should have installed tcl/tk correctly.
: I am working on Debian Linux 3.0
: //bow~~~

g******a
发帖数: 730
5

So it means I can do nothing to get this work, right?
I only find tklib8.3.so in the debian's tk lib. But I have to use tklib8.0.so
How to get this through? Thanks.

【在 t**c 的大作中提到】
: there's something wrong in your system, "current ar archive" usually means it's a static library file,
: but you're looking for a shared one.
: why not use the debian's default tk library?

t**c
发帖数: 97
6
the simplist solution: ask your sysadmin fix it.

【在 g******a 的大作中提到】
:
: So it means I can do nothing to get this work, right?
: I only find tklib8.3.so in the debian's tk lib. But I have to use tklib8.0.so
: How to get this through? Thanks.

g******a
发帖数: 730
7
ok,3x @@

【在 t**c 的大作中提到】
: the simplist solution: ask your sysadmin fix it.
w**n
发帖数: 88
8

In most cases higher version will do, just put a tklib8.0.so sym link pointing
to your tklib8.3.so
or if you want, you could create shared lib from your archive:
1. rename your ar archive to .a
2. ld -shared -no_archive -o tklib8.0.so -all renamed_ar.a -none -lc

【在 g******a 的大作中提到】
: ok,3x @@
g******a
发帖数: 730
9

Thanks so much. This works. //bow~~~

【在 w**n 的大作中提到】
:
: In most cases higher version will do, just put a tklib8.0.so sym link pointing
: to your tklib8.3.so
: or if you want, you could create shared lib from your archive:
: 1. rename your ar archive to .a
: 2. ld -shared -no_archive -o tklib8.0.so -all renamed_ar.a -none -lc

1 (共1页)
进入Unix版参与讨论
相关主题
Which package to contains ANSI C headers in IRIX?Help on 'make'
Emacs question.按你们的经验,这个错误是由什么引起的?
How to reinstall Solaris 8 from CD?how to setup lib path?
[转载] 谁能给我看看它的shadow文件?where is libstdc++
问一个shell script的问题急:ld.so.1的问题
Questions about libg++大家都是用什么机子装UNIX?
how to set include PATHconfused by some shell scripts run on mac (转载)
helpHow to set environment variables for CGI scripts?
相关话题的讨论汇总
话题: elf话题: library话题: invalid话题: ld话题: header