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

Reply via email to