ubuntu 12.04 code::blocksインストール

13044 ワード

just introduce *unix environment install steps and notes; my system environment: ubuntu 12.04 download source code of code::blocks from : codeblocks_12.11-1.tar.gz
$./bootstrap
./bootstrap: 63: ./bootstrap: libtoolize: not found
$sudo apt-fast install libtool -y
$./bootstrap
pass
$./configure --prefix=/usr --with-contrib-plugins=all
configure: error: 
                wxWidgets must be installed on your system.

                Please check that wx-config is in path, the directory
                where wxWidgets libraries are installed (returned by
                'wx-config --libs' or 'wx-config --static --libs' command)
                is in LD_LIBRARY_PATH or equivalent variable and
                wxWindows version is 2.8.0 or above.

SOLUTION:
$sudo apt-cache search libwxgtk
libwxgtk2.6-0 - wxWidgets Cross-platform C++ GUI toolkit (GTK+ runtime)
libwxgtk2.6-dbg - wxWidgets Cross-platform C++ GUI toolkit (GTK+ development)
libwxgtk2.6-dev - wxWidgets Cross-platform C++ GUI toolkit (GTK+ development)
libwxgtk2.8-0 - wxWidgets Cross-platform C++ GUI toolkit (GTK+ runtime)
libwxgtk2.8-dbg - wxWidgets Cross-platform C++ GUI toolkit (GTK+ debug)
libwxgtk2.8-dev - wxWidgets Cross-platform C++ GUI toolkit (GTK+ development)

AND it requests version is 2.8.0 or above .
$sudo apt-fast install libwxgtk2.8-dev

-------------retry configure------another problem--------------------
configure: error: Package requirements (hunspell) were not met:

No package 'hunspell' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables HUNSPELL_CFLAGS
and HUNSPELL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

SOLUTION:
$sudo apt-cache search hunspell
hunspell - spell checker and morphological analyzer (program)
hunspell-an - Aragonese dictionary for hunspell
hunspell-ar - Arabic dictionary for hunspell
hunspell-da - Danish dictionary for hunspell
hunspell-de-at - Austrian (German) dictionary for hunspell
hunspell-de-ch - Swiss (German) dictionary for hunspell
hunspell-de-de - German dictionary for hunspell
hunspell-en-ca - English_canadian dictionary for hunspell
hunspell-en-us - English_american dictionary for hunspell
hunspell-eu-es - Basque (Euskera) dictionary for hunspell
hunspell-fr - French dictionary for hunspell
hunspell-gl-es - Galician dictionary for hunspell
hunspell-hu - Hungarian dictionary for hunspell
hunspell-kk - Kazakh dictionary for hunspell
hunspell-ko - Korean dictionary for hunspell
hunspell-ml - Malayalam dictionary for hunspell
hunspell-ne - Nepali dictionary for hunspell
hunspell-ro - Romanian dictionary for hunspell
hunspell-ru - Russian dictionary for hunspell
hunspell-se - North Sámi Hunspell dictionary
hunspell-sh - Serbian (Latin) dictionary for hunspell
hunspell-sr - Serbian (Cyrillic) dictionary for hunspell
hunspell-sv-se - Swedish (SE) dictionary for hunspell
hunspell-tools - tools for hunspell
hunspell-uz - The Uzbek dictionary for Hunspell
hunspell-vi - Vietnamese dictionary for hunspell
libhunspell-1.3-0 - spell checker and morphological analyzer (shared library)
libhunspell-1.3-0-dbg - spell checker and morphological analyzer (debug symbols)
libhunspell-dev - spell checker and morphological analyzer (development)
libreoffice - office productivity suite
myspell-et - Estonian dictionary for MySpell
myspell-lv - Latvian dictionary for Myspell
myspell-nl - Dutch dictionary for Hunspell
myspell-pl - Polish dictionary for myspell
myspell-sv-se - transitional dummy package
goldendict - feature-rich dictionary lookup program
hunspell-de-at-frami - Austrian (German) dictionary for hunspell ("frami" version)
hunspell-de-ch-frami - Swiss (German) dictionary for hunspell ("frami" version)
hunspell-de-de-frami - German dictionary for hunspell ("frami" version)
hunspell-de-med - German medical dictionary for hunspell
libtest-spelling-perl - Perl module for spellchecking pod formatted text
myspell-fr - French dictionary for myspell (Hydro-Quebec version)
myspell-ru - Russian dictionary for MySpell
myspell-tl - Tagalog dictionary for myspell/hunspell
myspell-tools - tools for myspell
omegat - Computer Assisted Translation (CAT) tool
tea - text editor with syntax highlighting & UTF support

————————–NOTE————————— we must always focus on what we need! we need hunspell lib not program.
$sudo apt-fast install libhunspell-dev

————-retry configure——another problem——————– configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:
No package ‘gtk+-2.0’ found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables GTK2_CFLAGS and GTK2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. ——————————SULOTION————————————–
$sudo apt-fast install libgtk2.0-dev

—————————–STILL—————————————–
configure: error: Package requirements (gamin) were not met:
No package ‘gamin’ found
—————————–sulotion————————————-
sudo apt-fast install libgamin-dev

————————boost———————————–
configure: error: needed boost headers not found or not usable ———————–solution——————————–
sudo apt-fast install libboost-dev

—————————-NOTE——————————–
it’s not newest version!
if you wanna kown more about this configure options, just read ./BUILD
$make 
$sudo make install