-1

hi i searched information about this and didn't find any that solve my problem.

I connected remotely to server of my College using putty , now i'm trying to create a dynamic library , using the command to set the path:

export LD_LIBRARY_PATH=/home/fred/lib:$LD_LIBRARY_PATH

it says: "export: command not found"

i compiled my code using this:

gcc -I../include -L../lib -o printer printer.c -llprprint

(it alowed me to compile code library file .so and include file that i have done, all work fine)

so the problem is i want to run ./myProgram it says cant find my library or its not exists.

i wonder if the prolem is in the path? how i make export works? please help

fedorqui
  • 275,237
  • 103
  • 548
  • 598
bitWise
  • 15
  • 4

1 Answers1

0

Not entirely sure, but your shell may not be bash.
Try running which sh and see what shell you are using.
Chances are, you might be using tcsh or ksh

Another neat way to get your shell is by using cat /etc/passwd | grep <username> (use your username instead of <username>)
This should show you your shell

If you find out that your shell isn't bash, but you want to use bash, you could use chsh
This allows you to change the default shell

Guru Prasad
  • 4,053
  • 2
  • 25
  • 43