Thanks Ludovic. I forgot to say that I have put the libpcsclite.so.1 file to the directory of /usr/local/lib. Now it works. Thanks again.
On 12/11/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Send Muscle mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.drizzle.com/mailman/listinfo/muscle > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Muscle digest..." > > > Today's Topics: > > 1. loading libpcsclite.so.1 error (mail mail) > 2. Re: loading libpcsclite.so.1 error (Ludovic Rousseau) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 10 Dec 2005 14:22:03 +0800 > From: mail mail <[EMAIL PROTECTED]> > Subject: [Muscle] loading libpcsclite.so.1 error > To: [email protected] > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > hi, everybody > > I downloaded GSM Phone Card Viewer (0.9.1) from > http://www.linuxnet.com/applications/files/gsmcard_0.9.1.tar.gz. Then > I made some changes to the Makefile so that it could be compiled > successfully. But I encountered the loading error: > cardcomm/cardcomm: error while loading shared libraries: > libpcsclite.so.1: cannot open shared object file: No such file or > directory > > Where should I put libpcsclite.so.1 in ? > > My environment is : > pcscd located in /usr/local/pcsc/sbin > include files located in /usr/local/pcsc/include/PCSC > lib files located in /usr/local/pcsc/lib > > Now the Makefile for GSM Card Viewer is : > =========BEGIN=========== > LDFLAGS += -L/usr/local/lib -L/usr/local/pcsc/lib -lpcsclite -ldl -pthread > > CFLAGS += -I/usr/local/include -I/usr/local/pcsc/include/PCSC -g -Wall > #LDFLAGS += -L/usr/local/lib -lpcsclite-core -static > > > all: cardcomm tags > > tags: *.c > ctags *.c /usr/local/pcsc/include/PCSC/*.h > cardcomm: cardcomm.o > cardcomm.o: cardcomm.c > > > wurscht: > $(LD) $(LDFLAGS) cardcomm.o -o cardcomm > # $(CC) $(CFLAGS) $(LDFLAGS) cardcomm.c > ==========END============ > > But when I run "./gsmcard.pl" then input command "opencard", it reported that: > [EMAIL PROTECTED] gsmcard_0.9.1]# ./gsmcard.pl > Enter Command: opencard > cardcomm/cardcomm: error while loading shared libraries: > libpcsclite.so.1: cannot open shared object file: No such file or > directory > 200 card allocated. > Enter Command: quit > > In fact, libpcsclite.so.1 is located in /usr/local/pcsc/lib > [EMAIL PROTECTED] gsmcard_0.9.1]# ll /usr/local/pcsc/lib/libpcsclite.so.1 > lrwxrwxrwx 1 root root 20 May 31 2005 > /usr/local/pcsc/lib/libpcsclite.so.1 -> libpcsclite.so.1.0.0 > > Can anybody tell me why and how to solve it? > Thanks very much! > > Best Regards, > TowerGee > > > > ------------------------------ > > Message: 2 > Date: Sat, 10 Dec 2005 17:53:48 +0100 > From: Ludovic Rousseau <[EMAIL PROTECTED]> > Subject: Re: [Muscle] loading libpcsclite.so.1 error > To: MUSCLE <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > On 10/12/05, mail mail <[EMAIL PROTECTED]> wrote: > > hi, everybody > > > > I downloaded GSM Phone Card Viewer (0.9.1) from > > http://www.linuxnet.com/applications/files/gsmcard_0.9.1.tar.gz. Then > > I made some changes to the Makefile so that it could be compiled > > successfully. But I encountered the loading error: > > cardcomm/cardcomm: error while loading shared libraries: > > libpcsclite.so.1: cannot open shared object file: No such file or > > directory > > > > Where should I put libpcsclite.so.1 in ? > > > > My environment is : > > pcscd located in /usr/local/pcsc/sbin > > include files located in /usr/local/pcsc/include/PCSC > > lib files located in /usr/local/pcsc/lib > > > > Now the Makefile for GSM Card Viewer is : > > =========BEGIN=========== > > LDFLAGS += -L/usr/local/lib -L/usr/local/pcsc/lib -lpcsclite -ldl -pthread > > > > CFLAGS += -I/usr/local/include -I/usr/local/pcsc/include/PCSC -g -Wall > > #LDFLAGS += -L/usr/local/lib -lpcsclite-core -static > > > > > > all: cardcomm tags > > > > tags: *.c > > ctags *.c /usr/local/pcsc/include/PCSC/*.h > > cardcomm: cardcomm.o > > cardcomm.o: cardcomm.c > > > > > > wurscht: > > $(LD) $(LDFLAGS) cardcomm.o -o cardcomm > > # $(CC) $(CFLAGS) $(LDFLAGS) cardcomm.c > > ==========END============ > > > > But when I run "./gsmcard.pl" then input command "opencard", it reported > > that: > > [EMAIL PROTECTED] gsmcard_0.9.1]# ./gsmcard.pl > > Enter Command: opencard > > cardcomm/cardcomm: error while loading shared libraries: > > libpcsclite.so.1: cannot open shared object file: No such file or > > directory > > 200 card allocated. > > Enter Command: quit > > > > In fact, libpcsclite.so.1 is located in /usr/local/pcsc/lib > > [EMAIL PROTECTED] gsmcard_0.9.1]# ll /usr/local/pcsc/lib/libpcsclite.so.1 > > lrwxrwxrwx 1 root root 20 May 31 2005 > > /usr/local/pcsc/lib/libpcsclite.so.1 -> libpcsclite.so.1.0.0 > > Use: > $ LD_LIBRARY_PATH=/usr/local/pcsc/lib ./gsmcard.pl > > or edit your /etc/ld.so.conf file. > > Note that your problem is not related to smart cards. You should read > the ld.so manpage. > > Bye, > > -- > Dr. Ludovic Rousseau > > > > ------------------------------ > > _______________________________________________ > Muscle mailing list > [email protected] > http://lists.drizzle.com/mailman/listinfo/muscle > > > End of Muscle Digest, Vol 22, Issue 7 > ************************************* > _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
