LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2003, 09:36 PM   #1
dahmad
LQ Newbie
 
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15

Rep: Reputation: 0
changing SHELL ?


Hi All,
I'm trying to install a program and I modified the Makefile to include all the correct locations, and then I wanted to modify my shellrc file, to include the LD_LIBRARY_PATH env variable, so this is what i get :-

echo $SHELL
/bin/bash
but the bash rc file is weird so I included the LD_LIBRARY_PATH in the .cshrc file, but when I try to switch shells I get this :-

[dahmad@asia DAhmad]$ csh
LD_LIBRARY_PATH: Undefined variable.

This is what my .cshrc file looks like :-
# .cshrc

# User specific aliases and functions

alias rm 'rm -i'
alias cp 'cp -i'
alias mv 'mv -i'

setenv PATH "/usr/local/sbin:/usr/sbin:/sbin:${PATH}:${HOME}/bin"
setenv LD_LIBRARY_PATH "/home/DAhmad/openssh3-mcard/"
set prompt=\[`id -nu`@`hostname -s`\]\#\

And the error from the program I'm trying to compile :-
[dahmad@asia openssh3-mcard]$ make
(cd openbsd-compat && make)
make[1]: Entering directory `/home/DAhmad/openssh3-mcard/openbsd-compat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/DAhmad/openssh3-mcard/openbsd-compat'
gcc -o ssh ssh.o sshconnect.o sshconnect1.o sshconnect2.o sshtty.o readconf.o clientloop.o -L. -Lopenbsd-compat/ -L/home/DAhmad/openssl-0.9.7 -L/home/DAhmad/openssh3-mcard/ -L/usr/lib -lssh -lopenbsd-compat -lutil -lz -lnsl -lcrypto
./libssh.a(scard-opensc.o): In function `sc_close':
/home/DAhmad/openssh3-mcard/scard-opensc.c:71: undefined reference to `sc_pkcs15_unbind'
/home/DAhmad/openssh3-mcard/scard-opensc.c:75: undefined reference to `sc_disconnect_card'
/home/DAhmad/openssh3-mcard/scard-opensc.c:79: undefined reference to `sc_release_context'
And it keeps going on and on ........
I hope somebody can please tell me what I'm doing wrong.

Regards,

Sim
 
Old 02-25-2003, 12:58 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,570

Rep: Reputation: 171Reputation: 171
Which directories do you have in /etc/ld.so.conf? Are you sure it's enough (sc_release_context is from OpenSC: www.opensc.org)?
 
Old 02-25-2003, 10:10 PM   #3
dahmad
LQ Newbie
 
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15

Original Poster
Rep: Reputation: 0
yep the sc_release_context is from opensc.
my ld.so.conf :-

/usr/kerberos/lib
/usr/X11R6/lib
/usr/local/lib
/usr/lib/qt-2.3.1/lib
/usr/lib/sane

thanks for your help.
 
Old 02-27-2003, 12:59 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,570

Rep: Reputation: 171Reputation: 171
Now, do you have OpenSC? If no, install it. If yes, make sure its' libraries are in one of directories from ld.so.conf.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing root shell surfbass Linux - General 1 10-28-2005 02:03 PM
Changing Bash Shell JinSeung Linux - General 3 09-10-2004 08:54 PM
changing computer name in shell hamster001 Linux - Newbie 8 10-29-2003 05:12 PM
shell changing problems! andym Linux - Newbie 4 06-02-2003 01:21 PM
Changing a users shell bij368 Linux - General 2 07-02-2001 09:40 AM


All times are GMT -5. The time now is 08:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration