LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 10:30 PM   #1
treader
LQ Newbie
 
Registered: Mar 2006
Location: Cincinnati, OH
Distribution: Ubuntu Breezy Badger
Posts: 7

Rep: Reputation: 0
Newbie attempting build of sane on Ubuntu, gets errors


Am a newbie to Linux. I am trying to build sane-backends from source. Ubuntu-Breezy Badger.
1. Following the directions given elsewhere on this site, I got as far as ./configure when the
error: no acceptable compiler found in $PATH
popped up.
I dont know how to modify $PATH to include /usr/lib/gcc.

2. Also the command "man make' got me "no manual entry for make." Found a make.gz or some such in man(1) but was told I dont have permissions to extract it.

I would be grateful if someone explained how I can work around this rude behavior.

treader

Last edited by treader; 03-22-2006 at 10:32 PM.
 
Old 03-22-2006, 10:52 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
/usr/lib/gcc is not the executable gcc, it is library files. The gcc program that should be in your $PATH is usually found in /usr/bin/gcc, which on my system is a symbolic link to /usr/bin/gcc-4.0.

The fact that it isn't in your standard $PATH is somewhat odd for a Debian based system, but I guess it can happen. I thought that only occurred in Fedora/Redhat systems when you configured it for desktop only.

In any case, the way to resolve it is to open up synaptic or a terminal and update, then install gcc. If /usr/bin/gcc already exists, then try
Code:
echo $PATH
and see if /usr/bin is not there, although it always should be.

Peace,
JimBass
 
Old 03-24-2006, 05:38 PM   #3
treader
LQ Newbie
 
Registered: Mar 2006
Location: Cincinnati, OH
Distribution: Ubuntu Breezy Badger
Posts: 7

Original Poster
Rep: Reputation: 0
Ubuntu didn't install gcc at sysgen

Thank you, JimBass.
After opening the graphical file viewer, and expanding the file system tree, I found that this distro never installed gcc. I found gcc-4.0.deb on the cdrom I burned from the download, but have no idea how to install that kind of file.
I still don't know how to modify $PATH, but thats kinda not an issue right now.
I reviewed as much as I could stand of the install log, and it seems that the feller Ubuntu assigned to build the install method did nnot have his dependencies in anything like the proper order.
At this point, I am going to download the latest Ubuntu distro, and see if they have repaired the mess.
Why am I going through this heartburn? I got a used Procomm cd tower server at auction, and Ubuntu is the first os that recognized all 105
cdrom drives.

Once again, thanks.
treader- one step at a time
 
Old 03-24-2006, 06:09 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Dude you're talking about reinstalling because you don't have one file installed? All you need to do is go to the directory where the .deb file is, and install it. .deb is a debian package installer. The command to install the file (if the name you gave is correct) would be to become root, and issue the command
Code:
dpkg -i gcc-4.0.deb
Now gcc has many dependencies which you may not have. I would suggest using apt-get or aptitude to install gcc. The command to do that (from any directoy) would be:
Code:
apt-get update && apt-get install gcc
Peace,
JimBass
 
Old 04-01-2006, 01:20 PM   #5
treader
LQ Newbie
 
Registered: Mar 2006
Location: Cincinnati, OH
Distribution: Ubuntu Breezy Badger
Posts: 7

Original Poster
Rep: Reputation: 0
Talking

I have not responded because I installed RoboForm on my Windoze computer (I don't yet know how to connect Linux to the the internet, absent any Linux assistance from my ISP) The instructions supplied with Roboform do not match with the program behavior, allowing me to lock myself out of various sites with strong password protection

I am now running Dapper Drake Flight 5 Alpha on the other machine, and after visiting wiki.ubuntu.com/CompilingEasyHowTo I found that a file named build-essential is not installed by default. Once installed, I can both read man pages and install sane-backends. The os still doesn't know that the scanner is there, but one step at a time.

apt-get depends on the machine having internet access, right? It doesn't, and I still haven't got samba-server & samba-client to talk to the Windoze machine.

dpkg appears to be helpful. Must read the man page on that.

Thank you for your patient assistance
treader
 
Old 04-01-2006, 04:36 PM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Apt-get does indeed depend on internet access. You can also have apt-get try to find what it needs on the CDRom that you installed from, but what you need to install gcc "might" not be there. In the 4 or so years I have been working on linux machines, I have never had to work on one without internet.

The fact that samba client can't talk to the windows machines and you don't have internet sounds like they come from the same problem. Internet usually requires going out of your network card and into your /hub/switch/router or what have you, and samba also requires going out the same network card and into the same hub/switch/router etc.

I suspect that either ubuntu doesn't recognize your network card, you didn't configure the network card correctly, or you may have some physical problem, like a bad network card, bad cable, or bad port in the hub.

Assuming you have a normal internal network card, and not anything fancy like a usb card, or a wireless card, try issuing the command
Code:
lspci
The last line of my lspci says:
Quote:
0000:02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express (rev 01)
Look through your lspci, and see if it finds any ethernet card. If it does, then check if it is the card you have. If it doesn't find the card, then you have the root of your problem. Normally ubuntu is pretty good about hardware detection, but nothing is perfect. You could try running knoppix or any of the other live-on-cd linux distros, and checking if they auto-detect and correctly use your ehternet card.

If it is something like you set your card to accept a dhcp address, but you don't have a dhcp server running on your router or whatever, than that is also a major problem. try doing
Code:
/sbin/ifconfig
and seeing what your IP address is. If you get an actual address from /sbin/ifconfig, can you ping the gateway? probably not or you would have internet.

By the way, samba client usually works fairly easily out of the box with just a little configuration. Samba server is not so friendly. That's not to say you can't do it, but it seems like you're pretty new to linux, and getting samba server running is not a basic operation. If it is just a simple workgroup kind of thing then it isn't too bad, but if you have some higher level thing like a domain running, and you want samba to replace the domain controller, you're in for a major uphill battle. Replacing an existing domain controller with a samba box was probably the toughest thing I have ever done on linux.

Peace,
JimBass
 
  


Reply



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
anyone here uses ubuntu to build LFS,I have some questions about it sumargin Linux From Scratch 1 01-13-2006 01:38 AM
How to update SANE for Canoscan LiDE 25 (Ubuntu) ChrisTheGeek Linux - Newbie 1 10-11-2005 05:22 PM
HOWTO build gerbv (gerber viewer) on RH8 and remain sane primorec Linux - Software 4 01-27-2005 05:11 PM
Build Errors. sethgeekx86 Slackware 3 04-01-2004 06:47 PM
errors attempting to compile nvaudio module lasalsademuerte Slackware 2 12-02-2003 05:43 PM

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

All times are GMT -5. The time now is 04:36 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
Open Source Consulting | Domain Registration