Peter Penzov
Peter Penzov

Reputation: 1648

Set environment variables properly

I have to install very old software on a server. I have to perform this step but I get error:

[arbor@axapp01 3p]$ setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/java/jdk1.6.0_07/jre/lib/amd64/server:/usr/java/jdk1.6.0_07/jre/lib/security:/home/arbor/AX3.1_TC1/3P/curl/lib
Bad : modifier in $ (/).
[arbor@axapp01 3p]$

Looks like the step is wrong. Can you help me to fix it?

Upvotes: 0

Views: 67

Answers (1)

chiastic-security
chiastic-security

Reputation: 20520

Try writing it as

${LD_LIBRARY_PATH}:/usr/...

instead.

Is this really bash, though? (You've flagged it as such.) It's csh that uses setenv. The bash version would be

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/...

Upvotes: 3

Related Questions