LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-03-2006, 08:56 PM   #1
nectron101
Member
 
Registered: Nov 2004
Distribution: SuSE 9.1 Personal
Posts: 41

Rep: Reputation: 15
GCC problems..HELP


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..

Your help is much appreciated!
 
Old 05-03-2006, 09:23 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.
 
Old 05-03-2006, 09:53 PM   #3
nectron101
Member
 
Registered: Nov 2004
Distribution: SuSE 9.1 Personal
Posts: 41

Original Poster
Rep: Reputation: 15
nothing starts when I click the 'change source of installation'..

I really fed up with gcc..
 
Old 05-03-2006, 10:47 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
OK, Do this:

Get a root shell and type:

init 3

Log in as root

type:

yast2

goto software > and do everything from there.
 
Old 05-04-2006, 02:22 AM   #5
Narev
LQ Newbie
 
Registered: May 2006
Location: Ellicott City, MD
Distribution: SUSE 10.0
Posts: 2

Rep: Reputation: 0
Unhappy I tried this too...

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?

-Narev

(I cannot post URLs yet, hence (dot) and (slash))
 
Old 05-04-2006, 11:18 PM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.
 
  


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
Problems with GCC rigel_kent Debian 9 04-23-2006 10:45 AM
Problems Compiling Problems With GCC And C++ phnxbn Linux - Software 0 11-02-2004 05:49 PM
GCC problems inanna Red Hat 4 04-28-2004 04:20 PM
gcc problems? b0lt Slackware 2 11-19-2003 07:07 AM
Problems with gcc spooodini Linux - Software 5 10-31-2003 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:05 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