0

I am trying to set the environmental variable LD_LIBRARY_PATH to the directly i am currently working on.

This is the command which i gave.

 export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH

In response, i received the following error.

 LD_LIBRARY_PATH: Undefined variable.

The main purpose of the command is to set the library path as the current working directory since i am not granted a super admin power to copy my files in the usr/lib folder.

How to solve this

2
  • 3
    Oh bleeping bleep. Are you using (t)csh? Commented Jun 8, 2011 at 9:22
  • yes... @Ignacio
    – CHID
    Commented Jun 8, 2011 at 9:24

1 Answer 1

1

It means that LD_LIBRARY_PATH is not set in your env. Try

setenv LD_LIBRARY_PATH .
4
  • Thank you. But now it says, export command not found :(
    – CHID
    Commented Jun 8, 2011 at 9:27
  • I didn't say export. I said setenv :)
    – dogbane
    Commented Jun 8, 2011 at 9:27
  • ^^ yeah i gave setenv LD_LIBRARY_PATH and then executed the command. Now it says export command not found
    – CHID
    Commented Jun 8, 2011 at 9:30
  • 2
    you don't need to run any export command. Just setenv is enough.
    – dogbane
    Commented Jun 8, 2011 at 9:34

You must log in to answer this question.