在Ubuntu下编译Openoffice (2)

来源:互联网 发布:网络歌曲听说 编辑:程序博客网 时间:2024/05/20 14:15

一些配置过程中需要做的事情,我遇到的呃,你不一定会遇到:

注:

(1)【FIX】是指解决的办法。【NOT FIX】是指对我没用的方法,但可能对你们有效

1 安装PAM

http://www.linuxfromscratch.org/blfs/view/svn/postlfs/linux-pam.html

然后./configure --sbindir=/lib/security --docdir=/usr/share/doc/Linux-PAM-1.1.3 --enable-read-both-confs
make

我的弄完发现还是不行,直接 sudo apt-get install libpam-dev 可以,还省事。


2、 gperf not found but needed. Install it. 
 【FIX】apt-get install gperf


3、checking for freetype2 >= 2.0 ... Package freetype2 was not found in the pkg-config search path. Perhaps you should add the directory containing 
`fgure: error: Library requirements (freetype2 >= 2.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a 

nonstandard prefix so pkg-config can find them.reetype2.pc' to the PKG_CONFIG_PATH environment variable No package 'freetype2' found
confi

【FIX】参见http://openoffice.2283327.n4.nabble.com/attachment/2755786/0/Build%20OpenOffice.txt
下载freetype:http://www.linuxfromscratch.org/blfs/view/cvs/general/freetype2.html
解压后进入目录
先sed -i -r 's:.*(#.*SUBPIXEL.*) .*:\1:' \include/freetype/config/ftoption.h 
然后./configure --prefix=/usr
再make
最后sudo make install 


4、 X Development libraries not found:
【FIX】sudo apt-get install libx11.dev


5、Xaw include headers not found:
(sudo apt-get install libgtkglextmm-x11-1.2-dev
sudo apt-get install libghc6-x11-dev
sudo apt-get install libgl1-mesa-swx11-dev)(未解决)【not fix】

安装http://xorg.freedesktop.org/releases/individual/lib/libXaw-1.0.4.tar.bz2【not fix】
【FIX】install libxaw7-dev

6、checking fontconfig/fontconfig.h usability... no
checking fontconfig/fontconfig.h presence... no
checking for fontconfig/fontconfig.h... no
configure: error: fontconfig/fontconfig.h could not be found. libfontconfig1-dev or fontconfig???-devel missing?

->install libfontconfig1-dev【FIX】

7、  checking X11/extensions/Xrandr.h presence... no
checking for X11/extensions/Xrandr.h... no
configure: error: X11/extensions/Xrandr.h could not be found. X11 dev missing?

->sudo apt-get install libxrandr-dev【FIX】

8、 no bison found in $PATH, install bison
->sudo apt-get install bison【FIX】


9、 no flex found in $PATH, install flex
->sudo apt-get install flex 【FIX】


10、 安装cups
没安装会报cups/cups.h could not be found.
参考:http://www.installationwiki.org/Installing_CUPS
./configure
make
sudo make install 【FIX】


11、 checking for gconf-2.0 ... Package gconf-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gconf-
2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gconf-2.0' found
configure: error: Library requirements (gconf-2.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a 
nonstandard prefix so pkg-config can find them.

->sudo apt-get install libgconf2-dev【FIX】


12、 Library requirements (gnome-vfs-2.0 >= 2.6.0 ) not met
->sudo apt-get install libgnome-vfs-dev【NOT FIX 找不到这个包】
      ./configure ********--disable-gnome-vfs【FIX】


13、 whether to enable GNOME VFS support... no
checking for gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 ... 
configure: error: requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages

->sudo apt-get install libgtk2.0-dev【FIX】


14、 Ant not found - Make sure it's in the path or use --with-ant-home
checking for ant.cmd... no configure: error: Ant not found - Make sure it's in the path or use --with-ant-home

-> 下载 apache-ant from (e.g.) : http://archive.apache.org/dist/ant/binaries/
解压到: /usr/local
 ./configure******* --with-ant-home=/usr/local/apache-ant-1.6.0(根据具体版本)【FIX】


15、如果报 Can't locate Archive/Zip.pm

【FIX】sudo apt-get install libarchive-zip-perl