由买买提看人间百态

topics

全部话题 - 话题: padhome
(共0页)
g******a
发帖数: 730
1
来自主题: Unix版 - 问一个shell script的问题
I have a script like this:
#! /bin/sh
PADHOME = `/usr/local/pad`
export PADHOME
TCL_LIBRARY=$PADHOME/tcl8.0
export TCL_LIBRARY
TK_LIBRARY=$PADHOME/tk8.0
export TK_LIBRARY
ELK_LOADPATH=$PADHOME/scheme-runtime
export ELK_LOADPATH
$PADHOME/padwish $PADHOME/draw/pad.tcl $*
When I execute this script, I have the following error msg:
/usr/local/pad: is a directory
/padwish: no such file or directory
I have little knowledge in scipt and would like to know how to get this script
run correctly. THanks fo
g******a
发帖数: 730
2
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.
p******f
发帖数: 162
3
来自主题: Unix版 - 问一个shell script的问题

I guess the first line should be:
PADHOME=/usr/local/pad
(共0页)