Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-12-2005, 10:37 AM
|
#1
|
LQ Newbie
Registered: Jun 2005
Location: Denver Area, Colorado
Distribution: Slackware 10.1, Suse 9.something
Posts: 6
Rep:
|
./configure not working
You are welcome to brand me with the 'Scarlet nOOb' if you wish. For I am finding that is what I am. I've only had a passing familiarity with linux in the past and I finally decided to put it on my machine. After an arduous and ignorant install process, I have Slackware 10.1 running happily (I think).
My current problem is that when I try to install an application (such as Samba, part of the ignorance was to leave it out during the OS install) the ./configure command returns 'No such file or directory' O_o
This is not just for samba, other apps are providing the same result.
I have followed the instructions as far as where I un-tar'ed the archive (/etc/samba) but still no dice
I can't find anyone posting on the internet that has had this problem yet, so I'm throwing myself to the wolves.
SCHOOL ME!!!
*braces for barrage*
|
|
|
07-12-2005, 10:43 AM
|
#2
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517
Rep:
|
1. did you check whether the file exists (some programs do not require ./configure for compilation)
2. Is the configure script executable? If not, change it with 'chmod +x configure'
|
|
|
07-12-2005, 10:51 AM
|
#3
|
LQ Newbie
Registered: Jun 2005
Location: Denver Area, Colorado
Distribution: Slackware 10.1, Suse 9.something
Posts: 6
Original Poster
Rep:
|
Quote:
Originally posted by abisko00
1. did you check whether the file exists (some programs do not require ./configure for compilation)
2. Is the configure script executable? If not, change it with 'chmod +x configure'
|
There is no configure file in my samba directory, however the samba instructions give that command as part of the install process. I figured the path was system level and linux would know what I was talking about...
I'm not sure where the configure script would reside if not there... When I find it, I'll make sure it's excecutable.
If there is no configure script, one would use the make and make install commands correct? These are returning the same 'no such file...' message.
Darn I feel stupid.... Windows has lowered my tech IQ.
|
|
|
07-12-2005, 11:16 AM
|
#4
|
Member
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577
Rep:
|
This may seem like a dumb question on my part, so please forgive me for asking it.
After you untar the file do you change into the created directory and then run ./configure?
Also is it wise to untar a file in /etc?
Again please forgive me for asking these questions. I truly do not wish to insult your intelligence or abilities.
|
|
|
07-12-2005, 11:34 AM
|
#5
|
LQ Newbie
Registered: Jun 2005
Location: Denver Area, Colorado
Distribution: Slackware 10.1, Suse 9.something
Posts: 6
Original Poster
Rep:
|
Quote:
Originally posted by cuiq
This may seem like a dumb question on my part, so please forgive me for asking it.
After you untar the file do you change into the created directory and then run ./configure?
Also is it wise to untar a file in /etc?
Again please forgive me for asking these questions. I truly do not wish to insult your intelligence or abilities.
|
Hi,
Yes, I am in the untar'ed folder (/etc/Samba-3.0.14a)
as far as untarring in /etc....
...
...;;;
I hope it's not a problem....
This is where the Linux nOOb kicks in
If I have done something unbelievably ignorant, let me know.... Please....
And no, I don't feel insulted. I have gone into meditation to prepare my soul for people pointing out the ignorant sins against linux I have commited. I will repent.
This is my first attempt at installing an application but here's what I'm starting to gather.
-The tar file can be unzipped in any location, run and deleted
-If the tar does not contain a configure file, it is a binary and installed in a different fashion.
-I should have a 'Clockwork Orange' style crash course in linux file structure.
Another think I have tried is the installpkg command. It replied that the .tar.gz file was not a .tgz , so I renamed it and ran it again. It just displayed the line 'PACKAGE DESCRIPTION:' and then gave the prompt again.
Thank you for everyone trying to help me, I do appreciate it.
David
"I'll wait here for the Assasin-Ninja Penguins to end my life."
Last edited by dscheide; 07-12-2005 at 11:36 AM.
|
|
|
07-12-2005, 11:53 AM
|
#6
|
Member
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345
Rep:
|
Quote:
I figured the path was system level and linux would know what I was talking about...
I'm not sure where the configure script would reside if not there... When I find it, I'll make sure it's excecutable.
|
Your system path has nothing to do with this.
The ./ part of ./configure means you're specifying a specific file location, thus the shell only looks in the current directory (i.e. ./) and doesn't check the path.
If you just typed "configure", THEN the shell will check every directory in your path and search for a file named configure. There won't likely be a configure file in your path anyways, as every source code app will supply it's own configure file, thus why we always type ./configure
Quote:
Another think I have tried is the installpkg command. It replied that the .tar.gz file was not a .tgz , so I renamed it and ran it again. It just displayed the line 'PACKAGE DESCRIPTION:' and then gave the prompt again.
|
Sometimes that is all that installpkg will respond with anyways, even if the install works properly .
However installpkg only works with .tgz files which were specially prepared to be slackware packages. And since you seemed to imply that this was a source package, then it is likely not a slackware package.
Why not check if www.linuxpackages.net has a .tgz file for samba and install that one with installpkg.
Alternatively, I think there is probably a samba .tgz file on your slackware install discs which you could also install with installpkg
These two methods would definitely be easier than installing from source anyways.
Good luck.
|
|
|
07-12-2005, 12:07 PM
|
#7
|
LQ Newbie
Registered: Jun 2005
Location: Denver Area, Colorado
Distribution: Slackware 10.1, Suse 9.something
Posts: 6
Original Poster
Rep:
|
I'll give those a shot.
I know samba was an option during the intall process, I just seemed to have missed it. I'll look to see where the .tgz file is.
Thanks again.
David "the most recent linux nOOb"
|
|
|
07-12-2005, 12:26 PM
|
#8
|
LQ Newbie
Registered: Jun 2005
Location: Denver Area, Colorado
Distribution: Slackware 10.1, Suse 9.something
Posts: 6
Original Poster
Rep:
|
AHA!
the configure script was in a directory called source!
d'oh!
./configure worked
make is working
make install will probably work now
Last question, does it matter where I run this whole shebang from? Or will it install into it's own happy home where it's supposed to be?
not quite as nOOb (but still pretty nOOb),
David
my next project is to get my mouse to work
|
|
|
07-12-2005, 02:15 PM
|
#9
|
Member
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345
Rep:
|
Quote:
Last question, does it matter where I run this whole shebang from? Or will it install into it's own happy home where it's supposed to be?
|
Nope.
It most likely compiles everything into subdirectories of the current directory.
"make install" typically copies everything necessary to run the program out of these subdirectories and into a standard location. (e.g. /usr/local or something like that)
Just make sure you run "make install" as root, because it will almost certainly write to directories that an ordinary user can't modify.
|
|
|
07-12-2005, 02:39 PM
|
#10
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
IMPORTANT
you really really shouldn't be unpacking stuff in /etc
/etc/samba is for very sensitive configuration files
use /src
make the directory if it doesn't exist
mkdir /src
chmod a+wt /src
|
|
|
07-12-2005, 02:51 PM
|
#11
|
LQ Newbie
Registered: Jun 2005
Location: Denver Area, Colorado
Distribution: Slackware 10.1, Suse 9.something
Posts: 6
Original Poster
Rep:
|
Thank you all.
I shalt not unpack a tar into /etc
Good to know. I will create my own happy source file directory and play in there.
"Good Times"
David
|
|
|
All times are GMT -5. The time now is 11:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|