forums.xandros.com Forum Index forums.xandros.com
Xandros User Forums
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Trying to install gcc on Asus eeePC under Xandros

 
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Developer Tools
View previous topic :: View next topic  
Author Message
dfkettle
Xplorer


Joined: 28 Aug 2009
Posts: 10

PostPosted: Sat Oct 31, 2009 3:15 pm    Post subject: Trying to install gcc on Asus eeePC under Xandros Reply with quote

Hi!

I've downloaded and installed gcc-3.4 using Synaptic, but
I'm still missing some header files (eg, stdio.h). It
seems that I also need to install 'linux-libc-dev', but
when I tried to download that package from the Debian
site, it told me there was already a later version of
the package installed. However, i can't find the missing
header files anywhere (I searched for them with 'find',
but no luck).

Can someone tell me what I'm doing wrong, or how to
solve this problem?

Thanks,
David.
Back to top
View user's profile Send private message
TekMate
Xendrosian
Xendrosian


Joined: 20 Feb 2003
Posts: 1092
Location: MA

PostPosted: Sat Oct 31, 2009 9:07 pm    Post subject: Reply with quote

What are you trying to compile?
_________________

If you were offered the chance to learn the truth…would you take it?
Back to top
View user's profile Send private message Visit poster's website
dfkettle
Xplorer


Joined: 28 Aug 2009
Posts: 10

PostPosted: Sun Nov 01, 2009 9:31 am    Post subject: Reply with quote

Nothing yet. Why?
Back to top
View user's profile Send private message
mhwelsh
Xandrosianling
Xandrosianling


Joined: 17 Feb 2003
Posts: 496
Location: Aberdeenshire, Scotland

PostPosted: Sun Nov 01, 2009 10:29 am    Post subject: gcc Reply with quote

Now you are both frustrated!

Try the following on the administrator's console;

"dpkg -l > /home/dfkettle/filename.txt"

This will list the packages installed with there version details.
Perhaps this will give you some clues.
If the file cannot be found perhaps it is not generated until you use the parent package.

martin welsh
Back to top
View user's profile Send private message Send e-mail
dfkettle
Xplorer


Joined: 28 Aug 2009
Posts: 10

PostPosted: Sun Nov 01, 2009 11:26 am    Post subject: Reply with quote

I finally managed to install gcc using aptitude, although with some warnings about conflicts (I let it continue anyway). It uninstalled Gimp, but now I have gcc working.

I think it's because I have repositories from Asus, Xandros and Debian in my repository list. Maybe I'd be better off just running Debian (I'm running a customized version of Xandros on an Asus eeePC). But I'm relatively new to Linux, I don't want to attempt that yet.

Thanks for your help.
Back to top
View user's profile Send private message
mhwelsh
Xandrosianling
Xandrosianling


Joined: 17 Feb 2003
Posts: 496
Location: Aberdeenshire, Scotland

PostPosted: Sun Nov 01, 2009 1:05 pm    Post subject: Sources Reply with quote

Try these.

"deb http://xnv45.xandros.com/4.5oc/pkg oc4.5-xn main contrib non-free
deb http://xnv45unsup.xandros.com/4.5oc/upkg etch main contrib non-free"


They are a bit rudimentary but will keep a humble desktop running.
There are more addresses running through the forums but beware if you go for really uptodate ones as you may run into dependency problems.

Happy hunting.

martin welsh
Back to top
View user's profile Send private message Send e-mail
dfkettle
Xplorer


Joined: 28 Aug 2009
Posts: 10

PostPosted: Mon Nov 02, 2009 8:34 pm    Post subject: Reply with quote

I added the repositories you suggested, but when I tried to open Synaptic, I got warning messages about them:

W: Couldn't stat source package list http://xnv45.xandros.com oc4.5-xn/main Packages (/var/lib/apt/lists/xnv45.xandros.com_4.5oc_pkg_dists_oc4.5-xn_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://xnv45.xandros.com oc4.5-xn/contrib Packages (/var/lib/apt/lists/xnv45.xandros.com_4.5oc_pkg_dists_oc4.5-xn_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://xnv45.xandros.com oc4.5-xn/non-free Packages (/var/lib/apt/lists/xnv45.xandros.com_4.5oc_pkg_dists_oc4.5-xn_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://xnv45unsup.xandros.com etch/main Packages (/var/lib/apt/lists/xnv45unsup.xandros.com_4.5oc_upkg_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://xnv45unsup.xandros.com etch/contrib Packages (/var/lib/apt/lists/xnv45unsup.xandros.com_4.5oc_upkg_dists_etch_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://xnv45unsup.xandros.com etch/non-free Packages (/var/lib/apt/lists/xnv45unsup.xandros.com_4.5oc_upkg_dists_etch_non-free_binary-i386_Packages) - stat (2 No such file or directory)

Are you sure those are the correct URL's?

Here's what my repository list looks like. I've got them "pinned" in the
same order.

deb http://update.eeepc.asus.com/1.6/ common main
deb http://update.eeepc.asus.com/1.6/ p704 main
deb http://update.eeepc.asus.com/1.6/ en main
deb http://update.eeepc.asus.com/p701/ p701 main
deb http://xnv45.xandros.com/4.5oc/pkg/ oc4.5-xn main contrib non-free
deb http://xnv45unsup.xandros.com/4.5oc/upkg/ etch main contrib non-free
deb http://download.tuxfamily.org/eeepcrepos/ p701 main etch
deb ftp://ftp.us.debian.org/debian/ etch main contrib non-fre

Thanks,
David.
Back to top
View user's profile Send private message
mhwelsh
Xandrosianling
Xandrosianling


Joined: 17 Feb 2003
Posts: 496
Location: Aberdeenshire, Scotland

PostPosted: Tue Nov 03, 2009 4:34 am    Post subject: Sources Reply with quote

I cut and pasted them from my /etc/apt/sources.list;

deb http://xnv45.xandros.com/4.5oc/pkg oc4.5-xn main contrib non-free
deb http://xnv45unsup.xandros.com/4.5oc/upkg etch main contrib non-free.

Perhaps you only used the highlighted section - they work for me.
It appears that you have quite a comprehensive list. You should be ok for most things so provided that you are wary when you install newer packages they should be work.

martin welsh
Back to top
View user's profile Send private message Send e-mail
dfkettle
Xplorer


Joined: 28 Aug 2009
Posts: 10

PostPosted: Tue Nov 03, 2009 8:24 am    Post subject: Reply with quote

No, I copied the whole line by cutting and pasting from your post. I included the contents of /etc/apt/sources.list in my last post. The lines appear to match yours exactly. Have you tried them lately? Maybe the URL has changed?

Actually, I have a lot of problems due to conflicts among the various repositories. If I try to update a package in Synaptic, I'm warned that several things will be deleted (some of which seem to be completely unrelated to what I'm trying to update). So I'm afraid to update anything, for fear of breaking something else. Maybe this is inevitable when you have too many repositories in the list, though. I'm fairly new to Linux.
Back to top
View user's profile Send private message
mhwelsh
Xandrosianling
Xandrosianling


Joined: 17 Feb 2003
Posts: 496
Location: Aberdeenshire, Scotland

PostPosted: Tue Nov 03, 2009 9:25 am    Post subject: Sources List Reply with quote

I tried the addresses through Xandros Networks this morning and they worked ok.

Earlier versions of Xandros were very fussy about what sources of packages you used and much work was done on "pinning" which regulates the packages selected. ( try a google search on pinning or a search in this data base)

One of the penalties of having so many packages available so easily is that it is easy to overlook the necessary compatability of the packages components which may be shared by a number of different packages. (In your earlier post you mentioned that Gimp was removed unwittingly)

Most package managers do give you warnings about the consequences of the proposed actions but they are easy to misread or ignore whilst in pursuit of a particular objective.

To be safe try and be sure that the packages all come from the same stable, eg Debian Lenny or Etch or - if you really want to push your luck Sid, if they do not, keep your fingers and legs crossed when you press the 'go' button.

martin welsh
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Developer Tools All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group