Heim  >  Artikel  >  Datenbank  >  Ubuntu Linux下编译PostgreSQL 8.3.4学习体会

Ubuntu Linux下编译PostgreSQL 8.3.4学习体会

WBOY
WBOYOriginal
2016-06-07 16:53:05958Durchsuche

学习分析源代码postgresql,这几天刚刚起步,看了相关文章,准备工作。别人说要在Linux下先编译一下源码,以便后期工作。我电脑上

学习分析源代码PostgreSQL,这几天刚刚起步,看了相关文章,准备工作。别人说要在Linux下先编译一下源码,以便后期工作。我电脑上的Linux终于有用了。我用的是Ubuntu-8.0.4

下源码:postgresql-8.3.4.tar.bz2

主要是下面几行命令:

Linux@Linux-laptop:~/Desktop$:tar jxvf postgresql-8.3.4.tar.bz2
Linux@Linux-laptop:~/Desktop$:cd postgresql-8.3.4
Linux@Linux-laptop:~/Desktop/postgresql-8.3.4$ : ./configure --prefix=/opt/postgresql -9.3.4
Linux@Linux-laptop:~/Desktop/postgresql-8.3.4$ :make
Linux@Linux-laptop:~/Desktop/postgresql-8.3.4$ :make install

但是搞了老半天没成功:只要是第三行命令的时候有错误

如报错:

./configure error - readline library not found

又查下,主要要装一些东西: bison,flex,libreadline5-dex 这些在新立得软件包管理器里面可以直接装。

其实我对Linux也刚开始学!

PS: 对于源码安装,新立得里面有一个Kinstall,这个可以图形话的安装,,不用打命令了。但是手动安装可以练练手。

linux

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn