Redian新闻
>
Invalid ELF header Re: 问一个shell script的问题
avatar
Invalid ELF header Re: 问一个shell script的问题# Unix - 噫吁兮,危乎高哉
g*a
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.
avatar
w*n
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.

avatar
g*a
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?)

avatar
t*c
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~~~

avatar
g*a
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?

avatar
t*c
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.

avatar
g*a
7
ok,3x @@

【在 t**c 的大作中提到】
: the simplist solution: ask your sysadmin fix it.
avatar
w*n
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 @@
avatar
g*a
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。