Reply
Thread Tools
Posts: 951 | Thanked: 2,344 times | Joined on Jan 2012 @ UK
#1
Hey guys,
i wanted to know if it's possible to get the gcc compiler? I got some c code i would like to try out. And for it to work i need a gcc compiler.
 
Posts: 15 | Thanked: 5 times | Joined on Jan 2012
#2
apt-get install build-essential
 
Posts: 951 | Thanked: 2,344 times | Joined on Jan 2012 @ UK
#3
"E: Couldn't find package build-essential"
 
Posts: 56 | Thanked: 14 times | Joined on Jan 2012 @ Germany
#4
gives me several dependency errors. should I try to install those on my own one by one?
 
Posts: 15 | Thanked: 5 times | Joined on Jan 2012
#5
That is how I installed it on mine I thought. It still certainly comes up when I search for it using apt-cache. Try adding the extra repositories using n9 tweak perhaps then
apt-get update
Then try to install again.
 
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#6
Now I am not with my N9 to test.

But i think gcc needs the Harmattan-dev Nokia repository, so install :
http://harmattan-dev.nokia.com/pool/harmattan-beta3/free/h/harmattan-repository/harmattan-repository_0.4+0m6_all.deb
to enable this repository (if not enable before).

Then, as root (after 'devel-su' and 'rootme' as password) :
# apt-get update
# apt-get build-essential
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.
 
Posts: 56 | Thanked: 14 times | Joined on Jan 2012 @ Germany
#7
thanks. I think that repo is allready enabled on my device.

The dependency error I was talking of basically says "Package xyz is needed but should not be installed". I gues I try to install all those packages manually via ssh later today and see what's happening
 
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#8
Originally Posted by derliebewolf View Post
thanks. I think that repo is allready enabled on my device.

The dependency error I was talking of basically says "Package xyz is needed but should not be installed". I gues I try to install all those packages manually via ssh later today and see what's happening
Could you copy & paste the message ?
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.
 
Posts: 56 | Thanked: 14 times | Joined on Jan 2012 @ Germany
#9
well, here you go:

Code:
The following packages have unmet dependencies:
build-essential: Depends: libc6-dev but it is not going to be installed or libc-dev
Depends: g++ (>= 3:3.3) but it is not going to be installed
Depends: dpkg-dev (>= 1.4.1.19) but it is not going to be installed
E: Broken packages
If go on in the process and try to apt-get install libc6-dev a similar message appears:

Code:
The following packages have unmet dependencies:
libc6-dev: Depends: libc6 (= 2.5.0-1osso10) but 2.10-0maemo18.1+0m6 is to be installed
E: Broken packages
I think I could go on for a little while now...

EDIT: On the other hand I might just build a deb file from the source. Any qick link to how this is done best?

Last edited by derliebewolf; 2012-02-07 at 21:24.
 
hawaii's Avatar
Posts: 1,030 | Thanked: 792 times | Joined on Jun 2009
#10
It *might* be worth it to use a chroot to ensure dependencies don't get bungled up.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 03:32.