Your problem is your lack of privileges (or the lack of someone maintaining this forum? ;-)
You tried to run the default build of Sphinx which puts the files in /usr/local/lib. This is a no-no for non-root accounts. If you want a local setup, which will work just fine for you, probably, you need to give it a prefix. In your case, you should have:
./configure --prefix=/home/yiwu
before doing the make. This will put the binaries in /home/yiwu/bin and the library in /home/yiwu/lib. You then need to be sure that your path includes /home/yiwu/bin.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i did the installing work according to the user guide.
1../autogen.sh
2../configure
3.make
4.make test. It fails with the error of" *** No rule to make target `test'. Stop."
5.make install.It fails with the info as below:
Making install in src
make[1]: Entering directory `/home/yiwu/project/sphinx2-0.3/src'
Making install in libsphinx2
make[2]: Entering directory `/home/yiwu/project/sphinx2-0.3/src/libsphinx2'
Making install in include
make[3]: Entering directory `/home/yiwu/project/sphinx2-0.3/src/libsphinx2/include'
make[4]: Entering directory `/home/yiwu/project/sphinx2-0.3/src/libsphinx2/include'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/yiwu/project/sphinx2-0.3/src/libsphinx2/include'
make[3]: Leaving directory `/home/yiwu/project/sphinx2-0.3/src/libsphinx2/include'
make[3]: Entering directory `/home/yiwu/project/sphinx2-0.3/src/libsphinx2'
make[4]: Entering directory `/home/yiwu/project/sphinx2-0.3/src/libsphinx2'
/bin/sh ../../mkinstalldirs /usr/local/lib
/bin/sh ../../libtool --mode=install /usr/bin/install -c libsphinx2.la /usr/local/lib/libsphinx2.la
/usr/bin/install -c .libs/libsphinx2.so.0.1.0 /usr/local/lib/libsphinx2.so.0.1.0
/usr/bin/install: cannot create regular file `/usr/local/lib/libsphinx2.so.0.1.0': Permission denied
make[4]: *** [install-libLTLIBRARIES] Error 1
make[4]: Leaving directory `/home/yiwu/project/sphinx2-0.3/src/libsphinx2'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/yiwu/project/sphinx2-0.3/src/libsphinx2'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/yiwu/project/sphinx2-0.3/src/libsphinx2'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/yiwu/project/sphinx2-0.3/src'
make: *** [install-recursive] Error 1
i don't know why? Who can help me?thanks
Your problem is your lack of privileges (or the lack of someone maintaining this forum? ;-)
You tried to run the default build of Sphinx which puts the files in /usr/local/lib. This is a no-no for non-root accounts. If you want a local setup, which will work just fine for you, probably, you need to give it a prefix. In your case, you should have:
./configure --prefix=/home/yiwu
before doing the make. This will put the binaries in /home/yiwu/bin and the library in /home/yiwu/lib. You then need to be sure that your path includes /home/yiwu/bin.