Installing Code::blocks

Hello,
I tried to install Codeblocks.
I took the installation file from there : https://build.opensuse.org/package/binary?arch=i586&filename=codeblocks-7508-28.5.i586.rpm&package=codeblocks&project=devel%3Atools%3Aide&repository=openSUSE_11.4
I try intalling it through the Yast and here is what I get :
nothing provides libcodeblocks.so.0 needed by codeblocks-7508-28.5.i586

I went to this page : Installing Code::Blocks from source on Linux - CodeBlocks

“Checking the presence of GTK+ library
Have a look in /usr/lib for something like “libgtk-x11-2.0.so”. Alternatively, do a search with your package manager or go to your Linux distribution forum for help.”

-> I do not have such a file.

And I also found this : Cannot install Codeblocks on Opensuse 11.4
It does not seem to be my problem now (maybe when I solve this first one ?)

Thank you in advance.

Am 11.02.2012 19:36, schrieb franck210883:
>
> Hello,
> I tried to install Codeblocks.
> I took the installation file from there : http://tinyurl.com/89hhwpg
> I try intalling it through the Yast and here is what I get :
> NOTHING PROVIDES LIBCODEBLOCKS.SO.0 NEEDED BY CODEBLOCKS-7508-28.5.I586
> I went to this page : ‘Installing Code::Blocks from source on Linux -
> CodeBlocks’ (http://tinyurl.com/3ynt7l)
>
> “Checking the presence of GTK+ library
> Have a look in /usr/lib for something like “libgtk-x11-2.0.so”.
> Alternatively, do a search with your package manager or go to your Linux
> distribution forum for help.”
>
> -> I do not have such a file.
>
Install the package gtk2-devel to get this file.

The more interesting question is why you did not add the repository, it
is unlikely that by simply using a single rpm you can expect to fulfill
all dependencies.

You missed at least that you also need the rpm
libcodeblocks0 which has to be installed first if you do it the way you
did it.

> And I also found this : ‘Cannot install Codeblocks on Opensuse 11.4’
> (http://tinyurl.com/6q7l53o)
> It does not seem to be my problem now (maybe when I solve this first
> one ?)
>
> Thank you in advance.
>
>


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.8.0 |
nVidia ION | 3GB Ram

Thank you, I installed gtk2-devel and I found the file I needed.
Now, I followed the procedure described here : Installing Code::Blocks from source on Linux - CodeBlocks
I did everything written in the “Building wxWidgets” part : I added /opt/wx/2.8/bin to the PATH and then, problem : I must add /opt/wx/2.8/lib to /etc/ld.so.conf (nano /etc/ld.so.conf).
I have no idea how I can do that… And I did’t find any tutorial about it.

What don’t you know how to do?
Edit **/etc/ld.so.conf ?

**

Am 12.02.2012 03:16, schrieb franck210883:
>
> Thank you, I installed gtk2-devel and I found the file I needed.
> Now, I followed the procedure described here : ‘Installing Code::Blocks
> from source on Linux - CodeBlocks’ (http://tinyurl.com/3ynt7l)
> I did everything written in the “Building wxWidgets” part : I added
> /opt/wx/2.8/bin to the PATH and then, problem : I must add
> /opt/wx/2.8/lib to /etc/ld.so.conf (nano /etc/ld.so.conf)
.
> I have no idea how I can do that… And I did’t find any tutorial about
> it.
>
>
I still do not get it why you make your own life so hard.
There is no need to compile wxwidgets, all of them is available in
openSUSE you need to install the corresponding -devel files.

And again there is absolutely no need to compile anything yourself just
to get codeblocks.

Open a terminal and do


su -
zypper ar http://tinyurl.com/6sjpdcl devel:tools:ide
zypper in codeblocks

and that was it.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.8.0 |
nVidia ION | 3GB Ram

It worked right away, thank you.
Sorry, there are so many new things for me that I get confused…

Bezoutsidentity, ok, now I know that nano = edit…

On 02/12/2012 03:16 AM, franck210883 wrote:
> I followed the procedure described here : ‘Installing Code::Blocks
> from source on Linux - CodeBlocks’ (http://tinyurl.com/3ynt7l)

i believe what OP @franck210883 did not know is that the guide he
followed was not what he needed to follow…

the title of the procedure is “Installing Code::Blocks from source…”

which of course requires compiling…

which may be required by some Linux distros, but not often required
for openSUSE…

hello @franck210883! i know you have heard how hard it is to add
programs to Linux–but, that is a lie told by the uninformed…as you
see codeblock is SO simple to install (with one line of code in a
terminal, or the way i prefer with YaST Software Management [after
adding the correct repo]

welcome to the progressive Linux. (well, the same is available for
Debian, Red Hat and all the ‘main’ Linux varities…)

we even have documentation which explains it, have a look:

http://doc.opensuse.org/documentation/html/openSUSE/opensuse-startup/part.reference.software.html


DD http://tinyurl.com/DD-Caveat
Read what Distro Watch writes: http://tinyurl.com/SUSEonDW