Click here to register.

General Discussion

Flat
Using CMU Commands
User: sara
Date: 12/20/2011 3:39 am
Views: 3802
Rating: 13

Good Morning every body

well,I compiled CMU filed and hey were all put in the CMU/bin,however once I try to use these commands I got This :"Error while loading  shared libraries :? :cannot open shared object file : no such file or directory"

I ried everyhing but nothing is working...Can anyone give me a hint??? 

 

--- (Edited on 12/20/2011 3:39 am [GMT-0600] by sara) ---

Re: Using CMU Commands
User: nsh
Date: 12/27/2011 3:08 pm
Views: 157
Rating: 12

Hello

You need to conifigure linker to load the libraries. You can do it several ways:

1. Edit /etc/ld.so.conf to point to the location where libraries are installed

2. Set LD_LIBRARY_PATH environment variable to include /usr/local/lib. Put this into profile to make change permanent.

 

--- (Edited on 12/28/2011 00:08 [GMT+0300] by nsh) ---

Re: Using CMU Commands
User: sara
Date: 12/30/2011 1:47 pm
Views: 282
Rating: 12

Thank you very much Mr nsh,i was about to lose hope about someone who may answer my question but thank God you were there...However i was not able to understand what you really meant...can you please explain a little more for me and i will be very greatful.

well I tried to type this set LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

but nothing happened.here what I got: 

$  sara.txt | text2wfreq >  a.wfreq

/cygdrive/c/Users/user/Desktop/CMU/bin/text2wfreq.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory

/cygdrive/C/Users/user/Desktop/CMU/bin/sara.txt: line 1: jesuissarahamzaetudianteeninformatiquemaster2optionic: command not found

and the file a.wfreq is created but with 0kiloOctet...!!! I am really hopeless 

 

--- (Edited on 12/30/2011 1:47 pm [GMT-0600] by sara) ---

--- (Edited on 12/31/2011 4:20 pm [GMT-0600] by sara) ---

Re: Using CMU Commands
User: nsh
Date: 1/1/2012 5:23 am
Views: 111
Rating: 16

> $  sara.txt | text2wfreq >  a.wfreq

This command should start with cat:

cat sara.txt | text2wfreq >  a.wfreq

>/cygdrive/c/Users/user/Desktop/CMU/bin/text2wfreq.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory

Check that shared library is properly installed.

 

--- (Edited on 1/2/2012 14:19 [GMT+0300] by nsh) ---

Re: Using CMU Commands
User: sara
Date: 1/1/2012 12:04 pm
Views: 185
Rating: 15

How am I supposed to know that the libraries are properly installed or no...I installed cygwin very well,I guess, and I selected all the packages even those which I do not need.By the way, even with "echo" it didn't work again.In the CMU documentation the command begins with "cat" but when I type that it doesn't work too,the good thing about the way I write commands that at least the text is recognised.

--- (Edited on 1/1/2012 12:04 pm [GMT-0600] by sara) ---

Re: Using CMU Commands
User: nsh
Date: 1/2/2012 5:18 am
Views: 109
Rating: 11

> How am I supposed to know that the libraries are properly installed or no...

Check that files are placed in a proper folder and that they are referenced properly and could be loaded.

 

--- (Edited on 1/2/2012 14:18 [GMT+0300] by nsh) ---

Re: Using CMU Commands
User: sara
Date: 1/2/2012 8:12 am
Views: 181
Rating: 12

As a matter of fact you are talking to me just like am an expert in this, however it's the first time I use both cygwin and CMU so could you please make it easier for me: I didn't understand how should I check that the libraries are properly loaded is there any test to do????

--- (Edited on 1/2/2012 8:12 am [GMT-0600] by sara) ---

Re: Using CMU Commands
User: nsh
Date: 1/25/2012 5:39 pm
Views: 1063
Rating: 15

Sorry, I'm trying to explain we need to understand Unix basics in order to proceed with language model training. If you have some detailed questions, even a simple ones but detailed please ask. I'll be happy to answer them.

 

--- (Edited on 1/26/2012 02:39 [GMT+0300] by nsh) ---

PreviousNext