Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've just installed GCC 3.3.5 on a suse 9.1 Personal system..
Now when I try to compile, I get this:
linux:/home/Nectron/Desktop # gcc code.c
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld: unrecognized option '--as-needed'
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
-----------------
I really need gcc to work so I can install packages..
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
In Yast, or control center > Yast Modules
Go to change installation source.
Add an ftp installation source:
mirrors.kernel.org
/suse/i386/9.1
no user or password.
Make that the first source, and the only one that is active. Just read the screen and you'll do fine.
Finish
Go to install software. Search for "gcc". Install the correct gcc for your distro, which will be the one shown. Agree with SuSE's recommendations for dependencies.
Now you will have the right gcc for your version of ld. You don't need to reboot. Everything should work now.
Don't install any of the development tools in SuSE except with Yast.
Went into Yast, went to set up a new source like you said, hit ftp. In the site box I entered mirrors(dot)kernel(dot)org and the directory I put in /suse/i386/10.0/ I just got a box saying:
________________________________________________________
| Unable to create installation source
| from URL 'ftp://mirrors(dot)kernel(dot)org/suse/i386/10.0/'.
| Details:
| ERROR(InstSrc:E_no_instsrc_on_media)
| Try again?
|
| | Yes | | No |
|
|________________________________________________________
Trying again results in the same message. What's up?
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
Don't use /suse/i386/10.0. If it did let you use 10.0 it would wreck your whole system. If you want to upgrade you can do that, but putting version 10's repository for an installation source is not going to do an upgrade for you. Use /suse/i386/9.1. SuSE messed with their mirrors. Version 10 isn't the same kind of tree as 9.x. You can upgrade to 9.3 by downloading ftp/mirrors.kernel.org/suse/i386/9.3/boot/boot.iso
Burn it to a CD, and do a network install. You boot with that CD, and when the boot menu comes up, hit the down arrow to stop the counter. One of the F keys listed at the bottom of the screen will allow you to set ftp as installation. You can use the same mirror I already gave you, but instead of 9.1 put 9.3. Then, when the screen comes up select that you want to do an upgrade. Unless your /home directory is in a separate partition, because you don't have to format it then.
Otherwise, just put the 9.1 mirror in installation sources and reinstall gcc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.