Modifying LD_LIBRARY_PATH

天大地大妈咪最大 提交于 2021-01-29 01:43:36

问题


In UNIX, i am trying to modify the LD_LIBRARY_PATH to make it include some libraries i can't add to the regular libraries of the system( I don't have root permission it's a university server...), at this point I have used many ways that I came across the web to do this but could not modify it neither can i see what is the PATH .. I have tried using:

LD_LIBRARY_PATH="path-to-lib"

but got :command not found.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path-to-lib

but got: bad modifier in $ (/)

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/path-to-lib

but got: command not found

setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/path-to-lib

but got:LD_LIBRARY_PATH: Undefined variable.

I have got this solutions from: LD_LIBRARY_PATH without export and: How to set the environmental variable LD_LIBRARY_PATH in linux and the comments.

As recommended: my shell is -tcsh

After countless attempts to see my LD_LIBRARY_PATH using all sorts of guides on web i used the printenv command and this is my output:

USER=ravid
LOGNAME=ravid
HOME=/home/ls/ravid
PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/home/ls/ravid/bin:.
MAIL=/var/mail/ravid
SHELL=/bin/tcsh
SSH_CLIENT=132.70.42.111 58552 22
SSH_CONNECTION=132.70.42.111 58552 132.70.61.42 22
SSH_TTY=/dev/pts/0
TERM=xterm
HOSTTYPE=x86_64-linux
VENDOR=unknown
OSTYPE=linux
MACHTYPE=x86_64
SHLVL=1
PWD=/home/ls/ravid/cluster_Try/temp/logs
GROUP=ls
HOST=immsilico4
REMOTEHOST=mehr11.ad.biu.ac.il
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
CVS_RSH=ssh
G_BROKEN_FILENAMES=1
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
KDEDIRS=/usr
KDE_IS_PRELINKED=1
LANG=en_US.UTF-8
LESSOPEN=||/usr/bin/lesspipe.sh %s
MODULESHOME=/usr/share/Modules
MODULEPATH=/usr/share/Modules/modulefiles:/etc/modulefiles
LOADEDMODULES=
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
QTLIB=/usr/lib64/qt-3.3/lib
HOSTNAME=immsilico4
MANPATH=/usr/local/man:/usr/share/man:/usr/X11R6/man
COMPILER_VARS=/opt/intel/bin/compilervars.csh
Lic_File=/opt/intel/licenses

I can't find my LD_LIBRARY_PATH in here, is it not supposed to be specified here?

Thanks for your time!

来源:https://stackoverflow.com/questions/27123663/modifying-ld-library-path

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!