如何一次性安装完自己需求的软件。
使用批处理来安装所有需要的软件
sudo apt-get -y install libboost-dev
sudo apt-get -y install libgl1-mesa-dev
sudo apt-get -y install libglew-dev
git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
mkdir build
cd build
cmake ..
cmake --build .
sudo make install
cd ../..
rm -r -f Pangolin
echo "begin to install and configure postgresql "
sudo apt-get -y install postgresql-9.5
sudo apt-get -y install libpq-dev
sudo apt-get -y install postgis
sudo apt-get -y install postgresql-9.5-postgis-2.2 postgresql-contrib-9.5
postgresql-9.5-postgis-scripts
sudo apt-get -y install pgadmin3
wget http://pqxx.org/download/software/libpqxx/libpqxx-6.4.5.tar.gz
tar -xzvf libpqxx-6.4.5.tar.gz
cd libpqxx-6.4.5
./configure --prefix=/usr/local --enable-shared --disable-documentation(这一步很重要,生成共享库)
make clean
make
sudo make install
sudo -u postgres psql
alter user postgres with password 'postgres'
sudo passwd -d postgres
sudo -u postgres passwd
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)