LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-18-2014, 10:15 AM   #1
kathbeau
Member
 
Registered: Nov 2014
Posts: 31

Rep: Reputation: Disabled
Trying to install Code::Blocks, wxWidgets on Debian Wheezy


I am a longtime Windows programmer, new to Linux.

uname -a
Linux mix 3.16-0.bpo.2-amd64 #1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21) x86_64 GNU/Linux

I have successfully installed Code::Blocks 13.12-1 and wxWidgets 3.0.2 on Windows 7 (64-bit), and now want to set up a corresponding environment on my Debian Wheezy laptop.

My questions fall into two areas:

Code::Blocks
I retrieved the tar file from the link at http://www.codeblocks.org/downloads/binaries#linux64 and extracted it to a folder under /usr. It contains these .deb files, but no instructions regarding how to install them:
debian-stable/amd64/
debian-stable/amd64/wxsmith-headers_13.12-1_all.deb
debian-stable/amd64/codeblocks-wxcontrib-headers_13.12-1_all.deb
debian-stable/amd64/codeblocks-contrib-dbg_13.12-1_amd64.deb
debian-stable/amd64/codeblocks-common_13.12-1_all.deb
debian-stable/amd64/codeblocks-dev_13.12-1_amd64.deb
debian-stable/amd64/codeblocks-contrib_13.12-1_amd64.deb
debian-stable/amd64/libwxsmithlib0_13.12-1_amd64.deb
debian-stable/amd64/codeblocks-wxcontrib-dev_13.12-1_amd64.deb
debian-stable/amd64/codeblocks-dbg_13.12-1_amd64.deb
debian-stable/amd64/codeblocks-libwxcontrib0_13.12-1_amd64.deb
debian-stable/amd64/codeblocks-contrib-common_13.12-1_all.deb
debian-stable/amd64/codeblocks-headers_13.12-1_all.deb
debian-stable/amd64/libwxsmithlib0-dev_13.12-1_amd64.deb
debian-stable/amd64/codeblocks_13.12-1_amd64.deb
debian-stable/amd64/wxsmith-dev_13.12-1_amd64.deb
debian-stable/amd64/libcodeblocks0_13.12-1_amd64.deb
Can somebody please tell me where to find instructions? All of my attempts to search have failed.
wxWidgets
I cannot find the download site for what I need to install wxWidgets on Debian. I do want to use v3.0.2, since that is what is now on Windows, and I hope to build my project in both environments.
Thank you for your help.

Kathleen
 
Old 11-18-2014, 11:10 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Installing "codeblocks-13.12" in Debian 7 Wheezy :

Make sure that "backports" are included in /etc/apt/sources.list,
like :
Code:
deb http://ftp.debian.org/debian wheezy-backports main contrib
deb http://ftp.debian.org/debian wheezy-backports non-free
.. If not, please add the two lines, and do # apt-get update

"codeblocks-13.12" : # apt-get install codeblocks
( Ref. https://packages.debian.org/wheezy-backports/codeblocks )


Quote:
I cannot find the download site for what I need to install wxWidgets on Debian
Linux : You are not supposed to download packages.
All ~35,000 libraries and applications can be installed with # apt-get, or synaptic.
Please open `synaptic' Package Manager, ( do a 'Refresh' ),
.. and see for yourself.

-

Last edited by knudfl; 11-18-2014 at 11:16 AM.
 
Old 11-18-2014, 12:36 PM   #3
kathbeau
Member
 
Registered: Nov 2014
Posts: 31

Original Poster
Rep: Reputation: Disabled
Thank you, knudfl... I followed your instructions and have installed Code::Blocks. It gave me v2.8 of wxWidgets, and v10.05 of Code::Blocks however. (I'm using wxWidgets 3.0.2 and C::B 13.12 on the Windows set-up.) I think I'm going to want to uninstall this and try to get the current versions of the tools.

I don't seem to have 'synaptic' though... okay, I'm SLOWLY catching on... ran 'apt-get install synaptic'. Lots of install feedback. Then:

# synaptic
No protocol specified
(synaptic 2890): Gtk-WARNING **: cannot open display: :0

I'll keep searching... thank you again for your help.

Kathleen

Last edited by kathbeau; 11-18-2014 at 12:41 PM. Reason: Correction
 
Old 11-18-2014, 01:35 PM   #4
kathbeau
Member
 
Registered: Nov 2014
Posts: 31

Original Poster
Rep: Reputation: Disabled
Just a quick follow-up: in a thread on the Ubuntu forums (I'm not using Ubuntu; I'm on Debian) a question came up about how to run Synaptic on KDE. I'm running KDE, too. Some kind soul explained that it is found on the desktop through Application -> System -> Package Manager. It prompted me to log in as root, and now I'm in.

The adventure continues... I'm adding this in case it helps somebody else searching for "syntaptic" and "kde" and "debian".
 
Old 11-19-2014, 11:15 AM   #5
kathbeau
Member
 
Registered: Nov 2014
Posts: 31

Original Poster
Rep: Reputation: Disabled
Still struggling with this.

I followed the instructions to obtain "backports" as described above. And I can see the backport versions in Synaptic. But I cannot figure out how to get them installed.

Here are the steps I have tried:
  • Run Synaptic Package Manager
  • Locate the codeblocks package in the packages list
  • Force version from 10.05 to 13.12-1~bpo70+1
  • This also forces package codeblocks-common to this version

When reviewing Properties->Dependencies for codeblocks package, it Suggests
  • libwxgtk2.8-dev (I will want v3.0, which, again, I see is available for forcing)
  • wx-common
  • codeblocks-contrib

But when I Force Version on codeblocks-contrib, the checkbox displays a red block ... errors in the dependency handling.

If I try to install just the codeblocks and codeblocks-common packages, ignoring the suggested codeblocks-contrib, it installs... but cannot run.

Uninstalling the two packages, and falling back to the command line:

# apt-get install codeblocks

Installs Code::Blocks, and it runs... but it is the wrong version.

Attempts to upgrade (force version) after installing the old version gets me into trouble with broken packages that Synaptic cannot fix.

Clearly, I just don't understand something.

Reminder: I do have the official binaries for v13.02 from Codeblocks.org/SourceForge (see my original message). I even tried installing one, taking a wild guess at the possibility it might be the uber-installer package that would use the others as it needed them. This strategy failed.

Don't know what to try next.
 
Old 11-19-2014, 01:05 PM   #6
kathbeau
Member
 
Registered: Nov 2014
Posts: 31

Original Poster
Rep: Reputation: Disabled
Finally figured it out by clicking around, crossing my fingers, and praying I wasn't going to destroy my environment.

In Synaptic, Settings->Preferences dialog, Distribution tab, I changed the bullet from "Always prefer highest version" to "Prefer versions from wheezy backports".

Then I selected these three packages:
codeblocks
codeblocks-common
codeblocks-contrib

Hit Apply, and everything installed. Went to the desktop Applications->Development menu and found Code::Blocks IDE... and it works! More important, it's the right version and I was able to create a test project.

So the good news is I got the application I need.

But this was kind of a crazy way to go without a roadmap.

Oh, and I changed the Synaptic Preferences back to "Always prefer highest version", just so I don't do something I don't intend in the future.
 
1 members found this post helpful.
  


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
I broke my package manager / broken package blocks installs [Debian Wheezy] arthoc Linux - Software 4 06-20-2014 03:57 AM
cannot install cinelerra in Debian Wheezy StefanP Linux - Newbie 3 03-18-2014 04:45 AM
[SOLVED] How to install flash in debian 7 (wheezy) skilo47 Debian 6 05-28-2013 02:03 PM
install code::blocks blackcore Linux - Software 2 05-27-2010 07:32 AM
LXer: How-To: Compile and Install Code::Blocks from Source in Debian Lenny LXer Syndicated Linux News 0 01-12-2009 09:40 PM

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

All times are GMT -5. The time now is 01:51 AM.

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
Open Source Consulting | Domain Registration