LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-22-2004, 03:08 PM   #1
kgm
LQ Newbie
 
Registered: Jan 2004
Posts: 18

Rep: Reputation: 0
Angry confused


Hello *,

I am a newbie and am confused.

I am using Slackware -current.

Say, you download a tarball program in your home directory.

You untar it and create a subdirectory with the relevant files in it.

When you do a , ".configure", "make" or "make install" how do you know
where the files are copied to ?

Are they in the right libraries etc. ? How do I determine if they are ?

Can I now "rm" my subdirectory containing the untar files ?

Also, about permission - a user (km) gets "permission denied" running "mt -f /dv/rmt0 rewind" although the "/bin/mt-st" has a+rwx permission.

Why is this ?

Any suggestions would be appreciated.

Thank you.

kgm.
 
Old 01-22-2004, 03:38 PM   #2
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
I'll try to answer my questions to the best of my ability so here we go:
When you './configure\make\make install' the stuff you just compiled and installed is probably going to end up somewhere in /usr/local/. Most likely you will have everything you need to run the program because ./configure usually spits out error messages if you're missing something vital.
Yes you can remove those source subdirectories. You might want to hold onto the tarballs however, because if you need to uninstall the program, you untar the tarball and run make uninstall in that directory. A better way to go about all this though is to use checkinstall. checkinstall takes a compiled program and makes a slackpack out of it and installs it. This way the program can be uninstalled with 'removepkg /var/log/packages/package-name' and you don't need to keep the source, the slackpack, or the original tarball around. So after you install checkinstall your series would go './configure\make\checkinstall'. Answer the questions and you're golden.
The permissions thing probably has to do with the permissions of device /dev/rmt0. You'll need to set the permissions of that to the correct settings. At least that's what I think, but I don't do anything with tape drives so it could be something else.
 
Old 01-22-2004, 03:38 PM   #3
zefo
Member
 
Registered: Mar 2003
Posts: 71

Rep: Reputation: 15
> When you do a , ".configure", "make" or "make install" how do you know where the files are copied to ?

don't do "make install", rather run checkinstall. it will create tgz package for you and install it. then you can easily see the content of the installed package (via /var/log/packages) or eventually remove the package. other than this you can still find out by reading Makefile (but i wouldn't recommend this to a confused linux newbie..)

> Are they in the right libraries etc. ? How do I determine if they are ?

configure and make can assure you.. they are

> Can I now "rm" my subdirectory containing the untar files ?

well, why not. but if you didn't create the package using checkinstall you will lose the option to cleanly uninstall the program (while having the tarballs you can still run make uninstall - and hope it will work..).

> Also, about permission - a user (km) gets "permission denied" running "mt -f /dv/rmt0 rewind" although the "/bin/mt-st" has a+rwx permission.

what does echo $PATH say?
 
Old 01-22-2004, 03:43 PM   #4
zefo
Member
 
Registered: Mar 2003
Posts: 71

Rep: Reputation: 15
and one more thing: it is better to use ./configure --prefix=/usr instead of just ./configure.. (just my humble opinion)
 
Old 01-23-2004, 07:39 AM   #5
kgm
LQ Newbie
 
Registered: Jan 2004
Posts: 18

Original Poster
Rep: Reputation: 0
Thank you.

kgm.
 
Old 01-23-2004, 07:43 AM   #6
kgm
LQ Newbie
 
Registered: Jan 2004
Posts: 18

Original Poster
Rep: Reputation: 0
Angry

Hello *,

Do you always do "./configure","make", and "make install" on every tarball
you install or does this sequence changes depending on the file ?

How do I get "checkinstall" ?

Please reply.

kgm.
 
Old 01-23-2004, 08:01 AM   #7
kc00l
Member
 
Registered: Oct 2003
Location: France/Italy
Distribution: Slackware Current
Posts: 83

Rep: Reputation: 15
Quote:
Originally posted by zefo
and one more thing: it is better to use ./configure --prefix=/usr instead of just ./configure.. (just my humble opinion)
Yes, sometimes it is better adding /usr prefix, cause slackware directory tree isn't always the same as those intended by some programmers.

E.G:
www.pybliographer.org
 
Old 01-23-2004, 08:36 AM   #8
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
Quote:
Originally posted by kgm

Do you always do "./configure","make", and "make install" on every tarball
you install or does this sequence changes depending on the file ?
Sometimes the sequence is different; for example programs done in python usually are built with 'python ./setup.py build' and installed with 'python ./setup.py install'. I've also had experiences with perl programs compiling with different commands. Look at the ReadMe and INSTALL files that should come with the program for instructions.

Quote:

How do I get "checkinstall" ?
With SWareT: 'swaret --install checkinstall'
With slapt-get: I'm not really sure but there probably is a way.
You can also download it here.
 
Old 01-23-2004, 08:37 AM   #9
zefo
Member
 
Registered: Mar 2003
Posts: 71

Rep: Reputation: 15
Quote:
Originally posted by kgm

Do you always do "./configure","make", and "make install" on every tarball
you install or does this sequence changes depending on the file ?
i *always* do ./configure --prefix=/usr && make && su -v checkinstall

Quote:
How do I get "checkinstall" ?
ftp://ftp.slackware.at/slackware-9.1...kinstall-1.5.3

cheers,

-- joe
 
Old 01-23-2004, 08:50 AM   #10
newinlinux
Member
 
Registered: Dec 2003
Location: Next to Equator
Distribution: GNU/Linux 2.6.14
Posts: 382

Rep: Reputation: 30
Quote:
Originally posted by kgm
Hello *,

Do you always do "./configure","make", and "make install" on every tarball
you install or does this sequence changes depending on the file ?

How do I get "checkinstall" ?

Please reply.

kgm.
You can get checkinstall from Slackware 9.1's cd2's extra directory. I am sure you can google for it too.
 
Old 02-04-2004, 12:19 PM   #11
kgm
LQ Newbie
 
Registered: Jan 2004
Posts: 18

Original Poster
Rep: Reputation: 0
Angry

Helo,

How di I condense printing under slackware (LPRng+apsfilter) ?

Please reply anyone.

kgm.
 
  


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
Very confused unkn0wnhacka Linux - General 12 07-20-2005 09:44 AM
Please help, I'm so confused sdat1333 Suse/Novell 4 12-11-2004 09:23 PM
confused FrozenPenquin Linux - Newbie 26 12-09-2003 09:27 AM
so confused... KeTrueno Linux - General 1 09-28-2003 01:45 PM
Confused pilotgi Linux - Newbie 9 04-20-2002 12:06 AM


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