LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-06-2011, 08:17 AM   #1
duihou
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Rep: Reputation: 0
Cannot install Codeblocks on Opensuse 11.4


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
 
Old 11-10-2011, 12:43 AM   #2
mulyadi.santosa
Member
 
Registered: Sep 2011
Posts: 96

Rep: Reputation: 15
Hi....

From what I read, you did wxGTK installation twice (CMIIW here). And it seems that wxconfig or whatever wxGTK related commands you ran, refer to the first installation. bad thing is, first time you simply do "./configure; make; make install" so files are placed under usual places in /usr.

I think the quick solution is to change your PATH export, from:
export PATH=/usr/bin:/opt/wx/2.8/bin:$PATH
to
export PATH=/opt/wx/2.8/bin:/usr/bin:$PATH

Hopefully,that way, the latter installation of wxGTK binaries will supercede the earlier installation.

I think the similar act must be done for the libraries by editing ld.so.conf or related files. Somehow you have to make sure that when ld.so search for wxGTK libs, it goes to /opt/wx instead of /usr/lib. Just for wxGTK libs....

NB: if you look for simplicity, why not just use Vim?

Hope it works for you
 
1 members found this post helpful.
Old 11-10-2011, 01:45 PM   #3
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
There are codeblocks rpms for openSUSE 11.4 in the openSUSE Build Service.


Code:
$ sudo bash
$ cd /etc/zypp/repos.d
$ wget "http://download.opensuse.org/repositories/devel:/tools:/ide/openSUSE_11.4/devel:tools:ide.repo"
$ zypper refresh
$ zypper in codeblocks
 
1 members found this post helpful.
Old 11-11-2011, 12:13 PM   #4
duihou
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Many thanks for your replies, chaps.

The addition of the repository has done the trick, and I can now proceed to befuddle my mind with some good old C programming in my favourite IDE.

Sincere gratitude and best wishes,
Rich
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in CodeBlocks sujitkulkarni Programming 2 03-16-2011 05:55 PM
how to install openSuse 11 64bits on a box already has 32bits openSuse installed? 2007fld SUSE / openSUSE 7 11-28-2010 10:30 AM
codeblocks elishac Linux - Newbie 9 03-25-2010 04:06 PM
[SOLVED] Problem installing Codeblocks konzo Linux - Software 12 02-02-2010 04:12 AM
? how to install codeblocks on unbuntu 9.04 ? maxreason Ubuntu 1 06-02-2009 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration