我在Ubuntu中安装自由开关时遇到问题



我尝试安装Freeswitch我做了

./bootstrap.sh
./configure

但当我做时

make

上面写着

Entering directory '/usr/src/freeswitch/src/mod/databases/mod_pgsql'
Makefile:958: *** You must install libpq-dev to build mod_pgsql.  Stop.
make[4]: Leaving directory '/usr/src/freeswitch/src/mod/databases/mod_pgsql'
make[3]: *** [Makefile:714: mod_pgsql-all] Error 1
make[3]: Leaving directory '/usr/src/freeswitch/src/mod'
make[2]: *** [Makefile:615: all-recursive] Error 1
make[2]: Leaving directory '/usr/src/freeswitch/src'
make[1]: *** [Makefile:3680: all-recursive] Error 1
make[1]: Leaving directory '/usr/src/freeswitch'

我尝试sudo apt-get install libpq-dev安装libpg-dev,然后再次安装

./bootstrap.sh
./configure
make

它给了我同样的错误。

我想出了问题。

sudo apt-get install libpq-dev #for installing libpq-dev
sudo apt-get update            #for updating system
sudo apt-get upgrade           #for upgrading system
sudo chmod +x bootstrap.sh     #make the bash file executable
sudo chmod +x configure        #make the bash file executable
./bootstrap.sh                 #run bootstrap
./configure                    #run configure
make

我不知道make是做什么的。所以,我只是像你写的那样写。

最新更新