Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


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

share|improve this question

migrated from Jun 8 '11 at 19:37

This question came from our site for professional and enthusiast programmers.

Oh bleeping bleep. Are you using (t)csh? – Ignacio Vazquez-Abrams Jun 8 '11 at 9:22
yes... @Ignacio – CHID Jun 8 '11 at 9:24

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

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.