News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Installing Code::Blocks on openSUSE Leap 42.1

Started by ujbej, March 04, 2017, 01:17:05 PM

Previous topic - Next topic

ujbej

Hello,

I downloaded codeblocks-16.01.suse_Leap_42.1.x86_64.tar.xz and extracted it. It has lots of rpm files. Then I typed rpm -ivh *.rpm. It gave me error. I can't post it here because of 20000 characters limit. It is attached.

Any help is appreciated.

oBFusCATed

You need to install wxgtk 2.8 packages. Probably they are provided by the SUSE project. If they are not these rpms are useless.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

ujbej

#2
Thank you. I downloaded the source code. And I follow the instructions (http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux#Code::Blocks_installation) to install it. First it says I must have wxWidgets. So I downloaded and installed it. But here I'm confused:

QuoteLibrary wxGTK installation
Checking the presence of libwxGTK library

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.

Alternatively you can do the same in the command line (the following is an example, there may be more than two packages):

$ ls /usr/lib/libwx_gtk* //to verify the presence
$ sudo apt-get install libwxgtk2.8-dev
$ sudo apt-get install libwxgtk2.8-0



I can't find libwxgtk. I tried the first line above. Then it gave me this:

ls: cannot access /usr/lib/libwx_gtk*: No such file or directory

But I'm sure I installed wxWidgets. Because I followed the instructions of https://wiki.wxwidgets.org/Compiling_and_getting_started.  And I checked it via typing wx-config --version. It gave me 3.0.2.

Best regards.

stahta01

Quote from: ujbej on March 06, 2017, 11:59:11 AM
Thank you. I downloaded the source code. And I follow the instructions (http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux#Code::Blocks_installation) to install it. First it says I must have wxWidgets. So I downloaded and installed it. But here I'm confused:

QuoteLibrary wxGTK installation
Checking the presence of libwxGTK library

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.

Alternatively you can do the same in the command line (the following is an example, there may be more than two packages):

$ ls /usr/lib/libwx_gtk* //to verify the presence
$ sudo apt-get install libwxgtk2.8-dev
$ sudo apt-get install libwxgtk2.8-0



I can't find libwxgtk. I tried the first line above. Then it gave me this:

ls: cannot access /usr/lib/libwx_gtk*: No such file or directory

But I'm sure I installed wxWidgets. Because I followed the instructions of https://wiki.wxwidgets.org/Compiling_and_getting_started.  And I checked it via typing wx-config --version. It gave me 3.0.2.

Best regards.

Decide what you are trying to do!!!

Build Code::Blocks yourself?
Or install precompiled Code::Blocks from where-ever you found the RPMs?

Tim S.

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

ujbej

openSUSE RPM's are not working properly. So I decided to build by source code.

stahta01

#5
Most Linux Distros use wxWidgets 3.0.2 now; So, building Code::Blocks with wxWidgets 3.0.2 is normal.

What are you confused about?

Edit: No idea if the Debian Linux steps you tried to use will work on openSUSE; I would guess the answer is NO.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

ujbej

As I said earlier, I get improper feedback from the console:

I typed:  $ ls /usr/lib/libwx_gtk* //to verify the presence]

But here is the feedback:
ls: cannot access /usr/lib/libwx_gtk*: No such file or directory

I typed: sudo apt-get install libwxgtk2.8-dev


I got: Loading repository data...
Reading installed packages...
'libwxgtk2.8-devel' not found in package names. Trying capabilities.
No provider of 'libwxgtk2.8-devel' found.
Resolving package dependencies...

Nothing to do.



EDIT: These are the instructions on the wiki page: http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux#Code::Blocks_installation

stahta01

I give up you need a openSUSE expert to tell you if Debian package management command of apt-get works on your distro!

Why do you NOT use the wxWidgets 3.0.2 that you said was already installed?
Instead of trying to install 2.8 version of wxWidgets/wxGTK.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

ujbej

I use openSUSE because of  my job. And I am linux newbie. Of course I'll use wxWidgets 3.0.2 if I can. I just follow the instructions. 

sodev

Then use the system for which these intructions are made for ;D. Apparently your system also uses apt-get but the package names are maybe different. Or you need to enable additional package sources. This is not a CodeBlocks problem but an openSUSE problem, better ask in a forum dedicated to openSUSE how to get a wxWidgets 2.8 package.

ujbej