LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-09-2009, 11:21 AM   #16
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 316

Original Poster
Rep: Reputation: 30

Quote:
Originally Posted by knudfl View Post
.
Did you try with a link to /usr/local/bin/ ?
Can you be more specific? There's nothing gcc related in that dir.

Quote:
If cc1 is present in
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/ ?
No.
Code:
root@zeno:~# ls /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/
f771*  include/
root@zeno:~# ls /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/*
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/f771*

/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include:
g2c.h
Quote:
Which software is complaining ?
....
http://www.smaugmuds.org/
 
Old 01-12-2009, 06:01 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Quote:
gcc-3.3.6: installation problem, cannot exec `cc1': No such file or directory
http://www.linuxquestions.org/questi...rsions-696528/
# 7
Quote:
I think, I can guess, what is going on : May be, you used
2 Slackware packages to have 2 compilers.
That is simply not possible with 3.3.x / 4.x, too many conflicts.

The solution is to remove the "extra compiler" with # 'removepkg'
Next : Reinstall the system compiler to insure, that everything
is in place.

To make an extra usable compiler package, e.g. gcc-4.x :
Unpack gcc-4.x--.tgz in a new directory in /home .
Delete conflicting files, rename files in usr/bin :
1) delete install/doinst.sh
2) delete usr/lib/libgcc_s.so.1
3) in usr/bin : mv cpp cpp-4.1 ( or 4.2 if that's the version )
4) in usr/bin : mv gcov gcov-4.1 ( 4.2..)
and delete usr/bin/gccbug.
5) delete usr/share usr/doc usr/include usr/man usr/info
and usr/lib/classpath .

Use # 'makepkg' to repack ( use a new package name )
Say yes to 'chmod 0755'

If the above is a compiler, capable of working in that system,
it can now do it with no conflicts, and without overwriting
"system compiler files", when installed.

Last edited by knudfl; 01-12-2009 at 06:28 AM.
 
Old 01-12-2009, 06:40 AM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Ref # 16
The following files are in /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/
Code:
cc1*        crtbeginS.o  crtendS.o       libgcc.a
collect2*   crtbeginT.o  include/        libgcc_eh.a
crtbegin.o  crtend.o     install-tools/  specs
( From the package 'gcc-3.3.6-i486-1.tgz', Slackware 10.2 )
....
If something is missing, please reinstall gcc-3.3.6
....
About /usr/local/ : it's the ideal place to use, when making
workaround's for compiling poor written software. Reason :
No system packages are ever installed to /usr/local/ and the
"workarounds" are easy to trace and to remove again.
4-6 years ago I compiled some "funny" software on Slackware,
and it wouldn't eat cc1 or cc1plus. A link to /usr/local/bin
did the trick.
....

Last edited by knudfl; 01-12-2009 at 08:31 AM.
 
  


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
Having multiple versions of GCC Rostfrei Programming 4 11-21-2007 01:10 AM
include path for multiple versions of gcc hydrogeek Linux - General 5 11-18-2007 02:08 PM
Multiple versions of GCC Denisius Slackware 11 11-15-2007 07:39 AM
multiple versions of gcc Avatar33 Linux - General 3 02-22-2005 02:06 PM
multiple gcc versions and selectability tincat2 Linux - Software 1 06-08-2003 02:38 AM


All times are GMT -5. The time now is 10:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration