sanyaade-speechtools / phonetisaurus

Automatically exported from code.google.com/p/phonetisaurus
0 stars 0 forks source link

libfstscript.so.1: cannot open shared object file: No such file or directory #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install phonetisaurus on RASPBIAN Debian Wheezy 3.18
    wget https://phonetisaurus.googlecode.com/files/phonetisaurus-0.7.8.tgz
    tar -xvf phonetisaurus-0.7.8.tgz

    cd phonetisaurus-0.7.8/
    cd src
    sudo make

2. Building the Phonetisaurus FST model
     -  wget http://phonetisaurus.googlecode.com/files/g014b2b.tgz
     -  tar -xvf g014b2b.tgz
     - cd g014b2b/
     - ./compile-fst.sh

What is the expected output? What do you see instead?
I am new to raspberry pi, but i have programming experience. not sure what the 
expected output would be, but when i export the g014b2b.tgz file and run (sudo) 
./compile-fst.sh the terminal responds with

fstcompile --ssymbols=g014b2b.ssyms --isymbols=g014b2b.isyms --keep_isymbols  
--osymbols=g014b2b.osyms  --keep_osymbols g014b2b.fst.txt > g014b2b.fst
fstcompile: error while loading shared libraries: libfstscript.so.1: cannot 
open shared object file: No such file or directory

What version of the product are you using? On what operating system?

phonetisaurus-0.7.8
RASPBIAN Debian Wheezy 3.18

Please provide any additional information below.

when i go through the steps listed in <a 
href="https://code.google.com/p/phonetisaurus/issues/detail?id=32">issue 32</a> 

ls -l /usr/local/lib/libfst*

i get this output:

-rwxr-xr-x. 1 root staff       924 May 11  23:43 /usr/local/lib/libfst.la
-rwxr-xr-x. 1 root staff       960 May 11 02:00 /usr/local/lib/libfstscript.la
 lrwxrwxrwx. 1 root staff        21 May 12  02:00 /usr/local/lib/libfstscript.so -> libfstscript.so.1.0.0
 lrwxrwxrwx. 1 root staff        21 May 12  02:00 /usr/local/lib/libfstscript.so.1 -> libfstscript.so.1.0.0
-rwxr-xr-x. 1 root staff 109918335 May 12  02:00 
/usr/local/lib/libfstscript.so.1.0.0
 lrwxrwxrwx. 1 root staff        15 May 11  23:43 /usr/local/lib/libfst.so -> libfst.so.1.0.0
 lrwxrwxrwx. 1 root staff        15 May 11  23:43 /usr/local/lib/libfst.so.1 -> libfst.so.1.0.0
-rwxr-xr-x. 1 root staff   6614868 May 11  23:43 /usr/local/lib/libfst.so.1.0.0

similar to issue 32 where my  libfstscript.so.1 installed on the system but i 
am not reaching it

when i used your suggestion of changing my export LD_LIBR.......

////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////
Jasper Project

http://jasperproject.github.io/documentation/installation/#installing-sphinx
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////

export LD_LIBRARY_PATH="/usr/local/lib" ------> Should I Change this one
source .bashrc

And this to your ~/.bashrc or ~/.bash_profile: ------> Do these files have to 
be in the same directory for 
                                                                                  source .bashrc to run?
LD_LIBRARY_PATH="/usr/local/lib"
export LD_LIBRARY_PATH    ------> Or Should I Change this one
PATH=$PATH:/usr/local/lib/
export PATH

////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////

even when i make adjustments to the bashrc/bash_profile i still end up with the 
same error 

I am not sure if i have missed out on something fundamental 

any assistance would be greatly appreciated  

Original issue reported on code.google.com by kli...@gmail.com on 12 May 2015 at 11:51

GoogleCodeExporter commented 8 years ago
Hi, Disclaimer: I do not know *anything* about rasberrypi beyond the name, and 
I'm not connected to jasper either, I just made this g2p thing.  Typically it 
should be sufficient to do this:

$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib

After doing that, you should be able to verify that fstcompile runs correctly 
from the command line.

Assuming it works, you can add the same line to the bottom of your ~/ .bashrc 
or ~/.bash_profile:

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib

After adding the line you need to run:

$ source ~/.bashrc

to reload the profile with the change.  The change should be reloaded 
automatically from the next time you open a new terminal/console window.  If 
still none of that works, let me know!

Original comment by Josef.Ro...@gmail.com on 13 May 2015 at 12:26

GoogleCodeExporter commented 8 years ago
Thanks for the reply, i check all my dependencies and some where missing. 

By running $ make - or - make install on some of my tar.gz exported files i was 
able to resolve the problem.

But now i have another but not related to phonetisaurus.

Thanks for the assistence, it helped identify the problem

Original comment by kli...@gmail.com on 19 May 2015 at 9:49

GoogleCodeExporter commented 8 years ago
Migration time. Deleting here.

Original comment by Josef.Ro...@gmail.com on 9 Aug 2015 at 1:12