|
|

楼主 |
发表于 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. |
|