LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-22-2006, 07:59 PM   #16
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15

it gives me errors when i do a simple hello world program too!, how do i manually delte gcc? becuase it won't let me update it and when i delete it from the package manager it says it is required by other programs/libaries
 
Old 03-23-2006, 05:10 AM   #17
fakhrul
Member
 
Registered: Mar 2006
Location: Dhaka,Bangladesh
Distribution: Ubuntu 12.10
Posts: 51

Rep: Reputation: 15
Have u checked libc.so as your previous post:

Quote:
/usr/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libc.so:
file format not recognized; treating as linker script

/usr/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libc.so:5: parse error
collect2: ld returned 1 exit status
have a search in /usr/lib/gcc for libc.so, i think it is the core c library.
if its missed try to install it from package manager, if fedora is like redhat, that i use,
probably you have found it in development kit.
have a look if any library is left uninstalled.

if yet not work deselect the total development kit to erase everything, then reinstall it.
i think you are loged in as root, if not do it.
are you sure your cd is not damaged? if it is damaged your packages will not be installed succesfully.
in mid path it will abort giving failure msg.
 
Old 03-24-2006, 09:12 PM   #18
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15
well there is one gcc package that isn't install its called like "object C" or somthing but when i try to install it, it says its missing some librarys
 
Old 03-27-2006, 04:29 AM   #19
fakhrul
Member
 
Registered: Mar 2006
Location: Dhaka,Bangladesh
Distribution: Ubuntu 12.10
Posts: 51

Rep: Reputation: 15
Object C is a kind of object oriented language like popular c++ but it never become so
popular. you do not need it i think. one thing u can do

search by libc.so by typing find /usr/lib -name libc.so
if there is no output you may be sure a very vital library is missed.
 
Old 04-03-2006, 12:11 AM   #20
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15
nope it's there
 
Old 04-04-2006, 03:33 AM   #21
fakhrul
Member
 
Registered: Mar 2006
Location: Dhaka,Bangladesh
Distribution: Ubuntu 12.10
Posts: 51

Rep: Reputation: 15
ok i think we are approaching towards the solution. please issue the command and post it.
rpm -qa|grep glibc-devel

if you find any output then issue the command:

rpm -q glibc-devel|grep libc.so

if you donot get any output then it is the very problem. you donot have installed the vital package for gcc compiler to produce executable file. and that is

glibc-devel

find out it into your cd and install it. then try a simple hello world printing program.

if you are succided inform me kindly.
 
Old 04-06-2006, 07:59 PM   #22
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15
i did not get an output at all
lemme try to see if i can find that package

Last edited by xennetwork; 04-06-2006 at 08:07 PM.
 
Old 04-07-2006, 11:56 PM   #23
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15
ok so i installed suse and it dose exactly the same message, and i install every library and compiler or anything related and it still dont' work
 
Old 04-09-2006, 03:53 AM   #24
fakhrul
Member
 
Registered: Mar 2006
Location: Dhaka,Bangladesh
Distribution: Ubuntu 12.10
Posts: 51

Rep: Reputation: 15
i just wanna know if glibc-devel is installed. if you don't have rpm please visit tutorial section for yum as i do not use it. anyhow you need to install glibc-devel
 
Old 04-11-2006, 01:47 AM   #25
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15
yes it is installed. i just checked
 
Old 04-12-2006, 07:53 AM   #26
fakhrul
Member
 
Registered: Mar 2006
Location: Dhaka,Bangladesh
Distribution: Ubuntu 12.10
Posts: 51

Rep: Reputation: 15
I am really sorry that i know nothing about suse packages as i have never use suse. Fedora works well i know.

i am so sorry for you, for so long we can not solve the problem. Please don't be frustrated, i hope we can solve the problem. sure learning curve is a bit steepy in unix. but when we will solve the problem we will be very much benefited later.

can you compile a simpel hellow world printing c program? if yes your development suite is ready and c codes should be compiled. Please inform me.

if it fails, please post the error messages.

Can you give me the link of the sourcecode that you wanted to install, i will try in my comp to see what are the problems.

Good luck.
 
Old 04-13-2006, 01:31 AM   #27
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15
Well i'll try to install a program like MPlayer or anyother program throught the ./configure way and every program gives me the same errors.
thank your for your continues time and effort.
 
Old 04-13-2006, 09:06 AM   #28
fakhrul
Member
 
Registered: Mar 2006
Location: Dhaka,Bangladesh
Distribution: Ubuntu 12.10
Posts: 51

Rep: Reputation: 15
what about simple c program?

Please post the error msgs so i will compare with previous one
 
Old 04-25-2006, 12:03 AM   #29
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15
ok i've obviously made a mistake when i tryed making a hello world program the first time, i looked up on a diffrent tutorial and im able to successfully make a hello world program. so now where do i go from here?
 
Old 04-25-2006, 03:14 AM   #30
xennetwork
Member
 
Registered: Jan 2005
Location: Burney
Distribution: Kubuntu 7.1
Posts: 48

Original Poster
Rep: Reputation: 15
YES, i've successfully installed a program called Kplayer. I think it worked becuase i typed
Code:
./configure --prefix `kde-config --prefix`
instead of just typeing
Code:
./configure
 
  


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
Compiling c++ files :( gizmo_thunder Programming 6 10-23-2007 01:57 PM
Compiling driver files AngryDwarf Linux - Hardware 1 09-28-2005 08:05 AM
Compiling tar files xennetwork Linux - Newbie 2 01-26-2005 04:45 AM
compiling files from .tar.gz ungua Linux - Software 6 12-04-2004 02:34 PM
Compiling files bacloff Linux - Software 3 08-27-2003 09:34 PM


All times are GMT -5. The time now is 06:32 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration