在Ubuntu下編譯Openoffice (2)
一些配置過程中需要做的事情,我遇到的呃,你不一定會遇到:
注:
(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