install libsndfile from /usr to thirdparty

pull/2/head
Luo Tao 8 years ago
parent cb0680e8c4
commit c7676286ab

1
.gitignore vendored

@ -0,0 +1 @@
thirdparty

@ -8,9 +8,6 @@ Please replace `$PADDLE_INSTALL_DIR` with your own paddle installation directory
sh setup.sh
export LD_LIBRARY_PATH=$PADDLE_INSTALL_DIR/Paddle/third_party/install/warpctc/lib:$LD_LIBRARY_PATH
```
For some machines, we also need to install libsndfile1. Details to be added.
## Usage
### Preparing Data

@ -1,5 +1,6 @@
wget==3.2
scipy==0.13.1
resampy==0.1.5
https://github.com/kpu/kenlm/archive/master.zip
SoundFile==0.9.0.post1
python_speech_features
https://github.com/kpu/kenlm/archive/master.zip

@ -9,7 +9,9 @@ if [ $? != 0 ]; then
exit 1
fi
# install package Soundfile
# install package libsndfile
DIR="$( cd "$(dirname "$0")" ; pwd -P )"
mkdir thirdparty
curl -O "http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28.tar.gz"
if [ $? != 0 ]; then
echo "Download libsndfile-1.0.28.tar.gz failed !!!"
@ -17,15 +19,10 @@ if [ $? != 0 ]; then
fi
tar -zxvf libsndfile-1.0.28.tar.gz
cd libsndfile-1.0.28
./configure && make && make install
cd -
./configure --prefix=$DIR/thirdparty/libsndfile && make && make install
cd ..
rm -rf libsndfile-1.0.28
rm libsndfile-1.0.28.tar.gz
pip install SoundFile==0.9.0.post1
if [ $? != 0 ]; then
echo "Install SoundFile failed !!!"
exit 1
fi
# prepare ./checkpoints
mkdir checkpoints

Loading…
Cancel
Save