LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 755|回复: 6

高手呀,进来帮我个忙吧!

[复制链接]
发表于 2007-7-10 19:29:57 | 显示全部楼层 |阅读模式
我想装个fluxbox来玩玩,可是刚./configure 就出现了错误,要求我先装xlibs-dev、x-window-system-dev、x11-devel,我怎么找都找不到呀。求各位大仙指条明路吧。先谢谢了!
发表于 2007-7-10 20:29:44 | 显示全部楼层
为什么不用 rpm 而自己编绎呢
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-10 20:39:59 | 显示全部楼层
我家有二台是openSUSE、一台fedora 6,找不到openSUSE的rpm.另外,在安装FBDESK时也要用到上面提到的三个东东,所以就.......
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-11 04:01:54 | 显示全部楼层
问题得以解决,为了方便其它的兄弟所以把方法贴了出来(人人为我,我为人人!)
What do I need?

Fluxbox can be built with only common building tools (gcc, gpp, make etc) and libx11 development libraries (Usually libx11-devel or libx11-dev).

If you get error like thishttp://fluxbox-wiki.org/index.php?title=How_to_build_fluxbox_from_source&action=edit

checking for X... no configure: error: Fluxbox requires the X Window System libraries and headers.

Then try installing these packages (or similar ones)

xlibs-dev
x-window-system-dev
x11-devel

[edit]
Where do I get the source?

You can always get the latest source from here or from Sourceforge's page.


[edit]
Building fluxbox (short description)

$ tar -zxvf fluxbox-*.tar.gz  OR  tar -jxvf fluxbox-*.tar.bz2
$ cd fluxbox
$ ./configure
$ make
$ su
$ make install

Notes: configure can take other arguments. They are described below. You can use sudo instead of su. Default install path is /usr/local/share/fluxbox/


[edit]
Ok, I have everything. Now how do I build it? (Long description)

First untar the archive you have downloaded (for .tar.gz do tar -zxvf fluxbox-*.tar.gz (replace * with the version number) and for .tar.bz2 tar -jxvf fluxbox-*.tar.bz2. Please note that you need gzip for tar.gz and bzip2 for tar.bz2).

Then do a

$ cd fluxbox


Now you're in the same directory with the source. You should read the README and INSTALL files in there.

Continue with

$ ./configure

If you want to enable xinerama (multiple monitors) use ./configure --enable-xinerama and if you want to use png icons (and you have imlib2 development packages installed) you can use ./configure --enable-imlib2. Or even both, like ./configure --enable-xinerama --enable-imlib2. Easy, huh?

In doubt you can look up ./configure --help for all options.


When that is finished you must build the binary with

$ make


Finally do a

$ sudo make install

Or if that doesnt work, do

$ su
$ make install

Fluxbox will install into /usr/local/share/fluxbox.
[edit]
What is svn version and why should I use it?

(SVN stands for subversion and is very much like CVS.)

Svn version of Fluxbox is the latest development version available for testing. So if you want to try bleeding edge features, help hunting bugs or create a custom patches, this is what you should use.
[edit]
Getting the svn version and installing it

You need subversion, automake-tools and autoconf-tools to be installed.


To get the sources and prepare for compilation you need to type:

$ svn checkout svn://svn.berlios.de/fluxbox/trunk fluxbox && cd fluxbox && ./autogen.sh

After this you can go the usual way:

$ ./configure && make && sudo make install

Please note that this does not enable additional features. So if you want to use Xinerama, use ./configure --enable-xinerama and for png icons (imlib2) add --enable-imlib2

This will compile the souces and install it into the standard directories /usr/local/bin for the fluxbox binary and /usr/local/share/fluxbox/ for system wide config files and system styles.


For an easy update you only need:

$ cd fluxbox && svn update && make && sudo make install

[edit]
Getting an older revision from the svn repositories

Why would you want to do this ?

    * Maybe you have something broken on your system and the latest svn version cant compile, but you remember compiling revision X...
    * Maybe you found a bug that hasnt been addressed yet.
    * Maybe you want to use a patch that doesnt work with the bleeding-edge stuff.

Whatever the motives - here is the way to go:

$ svn checkout -r X svn://svn.berlios.de/fluxbox/trunk fluxbox

Of course you need to replace the X with revision number you want.
回复 支持 反对

使用道具 举报

发表于 2007-7-11 04:08:03 | 显示全部楼层
偶用 gcc-4.2 来编译 fluxbox-1.0c3 一直不能通过,楼主的 gcc 及 fluxbox 是什麽版本?貌似 fluxbox 是 SVN 的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-11 12:46:24 | 显示全部楼层
fluxbox-1.0c3,gcc-4.1.1-51。好像跟gcc的版本没什么很大关系(Fluxbox上没见具体要求),如果出现Fluxbox requires the X Window System libraries and headers.的提示那要确认你已安装xlibs-dev
x-window-system-dev
x11-devel
回复 支持 反对

使用道具 举报

发表于 2007-7-11 19:07:05 | 显示全部楼层
原来就是用 gcc-4.1.x 去编译 fluxbox-1.0rc3 的,我也没有任何问题,可是贪图 gcc-4.2 在性能上的一点点优势,用 gcc-4.2 却不能通过了,郁闷!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表