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
|