Created
November 19, 2015 09:13
-
-
Save samehkamaleldin/21b4479597725d928794 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ============================================================================== | |
# = author :- sameh kamal | |
# = description :- install ilive-plugin with unimrcp server | |
# = preconditions :- runs on ubuntu 14.4.x | |
# ============================================================================== | |
printf "> update ubuntu repositories\n\n" | |
sudo apt-get clean | |
sudo mv /var/lib/apt/lists /tmp | |
sudo mkdir -p /var/lib/apt/lists/partial | |
sudo apt-get clean | |
sudo apt-get update | |
printf "> install [libasound2-plugins, libasound2-python, libsox-fmt-all, sox]\n\n" | |
sudo apt-get install -y libasound2-plugins libasound2-python libsox-fmt-all sox | |
printf "> install build packages [build-essential libtool]\n\n" | |
sudo apt-get install -y build-essential libtool | |
# create a temporary directory and enter it. | |
printf "# enter [dist] directory\n\n" | |
cd dist | |
printf "> create [tmp] directory\n\n" | |
mkdir -p tmp | |
printf "# enter [tmp] directory\n\n" | |
cd tmp | |
# remove default apr if existing then download and install apr v1.5.2 | |
printf "> remove [apr] package using apt-get\n\n" | |
sudo apt-get purge apr | |
# download and install unimrcp dependencies v1.3.0 | |
printf "download [unimrcp-dependencies] v1.3.0] from <www.unimrcp.org>\n\n" | |
wget http://www.unimrcp.org/project/component-view/unimrcp-deps-1-3-0-tar-gz/download -O unimrcp-deps-1.3.0.tar.gz | |
printf "> extract [unimrcp-dependencies] package tar ball\n\n" | |
tar -zxf unimrcp-deps-1.3.0.tar.gz | |
printf "# enter [unimrcp-deps-1.3.0] directory\n\n" | |
cd unimrcp-deps-1.3.0 | |
printf "> build dependencies libraries\n\n" | |
./build-dep-libs.sh -s | |
printf "# leave [unimrcp-deps-1.3.0] directory\n\n" | |
cd .. | |
# download and install unimrcp server v1.3.0 | |
printf "> download [unimrcp v1.3.0] from <www.unimrcp.org>\n\n" | |
wget http://www.unimrcp.org/project/featured-view/unimrcp-1-3-0-tar-gz/download -O unimrcp-1.3.0.tar.gz | |
printf "> extract [unimrcp] package tar ball\n\n" | |
tar -zxf unimrcp-1.3.0.tar.gz | |
printf "# enter [unimrcp-1.3.0] directory\n\n" | |
cd unimrcp-1.3.0 | |
printf "> bootstrap & configure [unimrcp] build files\n\n" | |
./bootstrap | |
./configure # --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr/ | |
printf "> build [unimrcp]\n\n" | |
make | |
printf "> install [unimrcp] to default path\n\n" | |
sudo make install | |
printf "# leave [unimrcp-1.3.0] directory\n\n" | |
cd .. | |
printf "# leave [tmp] directory\n\n" | |
cd .. | |
printf "> remove tmp directory\n\n" | |
#rm -rf tmp | |
printf "#leave dist directory\n\n" | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment