Hello. How art?
Having successfully installed various programming bits and pieces (including Codeblocks, bigForth, Sun/Oracle Java and NetBeans) on my Kubuntu partition, I thought I'd do likewise for the OpenSUSE 11.4 partition. Oh boy! Eventually got bigForth and a very cut down and therefore useless version kdevelop, (yeuch!) but all else failed to install. I shan't go into details about anything except Codeblocks, as this is my main priority.
Below is a paste of what I typed as I was attempting to install Codeblocks...
1. Downloaded codeblocks from
http://www.codeblocks.org/downloads/26
codeblocks-10.05-0-suse112.i686.rpm
2. Used YAST/package manager to install:
nothing provides wxGTK >= 2.8.0 needed by codeblocks-10.05-0.i686
OK.
Downloaded wxGTK2.8.12 (as no sign of 2.8.0... probable futile.)
Unpacked
configure... took absolutely ages (old PC)
OK, no error messages.
OK. Now try MAKE
No errors.
OK, now MAKE INSTALL (sudo'd, of course)
No errors, but message to run ldconfig:
Bert@linux-48gs:~/Downloads/wxGTK-2.8.12> ldconfig
Absolute path to 'ldconfig' is '/sbin/ldconfig', so running it may require superuser privileges (eg. root).
Bert@linux-48gs:~/Downloads/wxGTK-2.8.12> sudo ldconfig
sudo: ldconfig: command not found
sudo -i
navigated to wxGTK-2.8.12 folder, and tried ldconfig... merely went to next line.
linux-48gs:/home/Bert/Downloads/wxGTK-2.8.12 # ldconfig
linux-48gs:/home/Bert/Downloads/wxGTK-2.8.12 #
retry installing codeblocks...
nothing provides wxGTK >= 2.8.0 needed by codeblocks-10.05-0.i686
SOURCE ATTEMPT using method in following url:
http://wiki.codeblocks.org/index.php...ource_on_Linux
mkdir ~/devel (done)
Have a look in /usr/lib for something like "libgtk-x11-2.0.so" (correct)
In your package manager, look for 'libwxgtk' keyword and verify that all libwxgtk2.8 stuffs
are installed. If you find the libraries uninstalled, just install them and go directly to
Code::Blocks installation ("no results" upon searching)
If not installed or found:
Visit the wxWidgets web site. Click the "Download" button at the top of the page.
Under wxWidgets 2.8.7 downloads, select wxGTK. Save the file in ~/devel.
After the download finishes, switch to ~/devel:
(2.8.7 does NOT exist on this page; only 2.8.12 or 2.6.4, trying 2.8.12)
cd devel
Bert@linux-48gs:~/devel> tar zxf wxGTK-2.8.12.tar.gz
Bert@linux-48gs:~/devel>
Bert@linux-48gs:~/devel> cd wxGTK-2.8.12
Bert@linux-48gs:~/devel/wxGTK-2.8.12>
Bert@linux-48gs:~/devel/wxGTK-2.8.12> mkdir build_gtk2_shared_monolithic_unicode
Bert@linux-48gs:~/devel/wxGTK-2.8.12>
Bert@linux-48gs:~/devel/wxGTK-2.8.12> cd build_gtk2_shared_monolithic_unicode
Bert@linux-48gs:~/devel/wxGTK-2.8.12/build_gtk2_shared_monolithic_unicode>
../configure --prefix=/opt/wx/2.8 \
--enable-xrc \
--enable-monolithic \
--enable-unicode
no errors
make no errors
sudo make install
The installation of wxWidgets is finished. On certain
platforms (e.g. Linux) you'll now have to run ldconfig
if you installed a shared library and also modify the
LD_LIBRARY_PATH (or equivalent) environment variable.
wxWidgets comes with no guarantees and doesn't claim
to be suitable for any purpose.
Read the wxWidgets Licence on licencing conditions.
Add /opt/wx/2.8/bin to the PATH (if your shell is bash then edit /etc/profile or ~/.bash_profile)
(On Suse 10.1 edit /etc/profile.local, it will only be available after a new login).
(NB: THERE IS NO PROFILE.LOCAL)
export PATH=/usr/bin:/opt/wx/2.8/bin:$PATH
(no error message)
edited ld.so.conf in vi
Add /opt/wx/2.8/lib to /etc/ld.so.conf (nano /etc/ld.so.conf), then run:
ldconfig
source /etc/profile
That's it. Now the linker will look in /opt/wx/2.8/lib for wx libraries and you will have a monolithic shared library unicode build.
To check that things are working, type:
Bert@linux-48gs:~/devel/wxGTK-2.8.12> wx-config --prefix
which should give you /opt/wx/2.8 ----- (NOPE, /usr/local)
wx-config --libs
which should have at least:
-L/opt/wx/2.8/lib -lwx_gtk2-2.8
(NOPE: Bert@linux-48gs:~/devel/wxGTK-2.8.12> wx-config --libs
-L/usr/local/lib -pthread -lwx_gtk2_richtext-2.8 -lwx_gtk2_aui-2.8
-lwx_gtk2_xrc-2.8 -lwx_gtk2_qa-2.8 -lwx_gtk2_html-2.8 -lwx_gtk2_adv-2.8
-lwx_gtk2_core-2.8 -lwx_base_xml-2.8 -lwx_base_net-2.8 -lwx_base-2.8)
which wx-config
should return /opt/wx/2.8/bin/wx-config
(NOPE /usr/local/bin/wx-config)
Upon trying to search for further help, the opensuse forum server is down.
That really sums this distro up for me.
Anyway, I cannot move onto the next step, as the wxGTK environment still seems incorrect. Just for a laugh, I tried reinstalling the codeblocks binary at the top of this list, and it still complained about wxGTK 2.8 or greater being missing.
Does anyone have any ideas what I am doing hopelssly wrong? Should I give it up as a bad idea? Has anyone in the entire history of the multiverse managed to install Codeblocks on this distro?
Alternatively, could someone maybe suggest other IDEs for C programming? I'd rather not try NetBeans, as this PC is elderly and slow, like me.
Thanks in advance,
Rich