LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-01-2007, 11:53 AM   #16
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73

Quote:
Originally Posted by NightSky View Post
I really need to know what happens when I use the install command and make install.
I have 4 tar.gz printer packages sitting in a folder in /home/usr; I unpacked one but I am not sure install instructions are akin to slackware install requirements and I don't know how to undo whatever I did; so I am afraid to open the rest because I am not sure what process of installing to use.
You can cat the Makefile and read what the install process actually does. Just look for the install section. Also, some software will allow you to specify a destination directory to install to. This is usually specified in an option during "make install". Finally, if nothing else you can sometimes change the install directories by setting options during "./configure".

For example, when using the option at "make install" it looks like
Code:
make install DESTDIR="/home/USERNAME/myTestdir"
If that is not available you can usually set PREFIX during the configure process (by default it is usually something like /usr so include 'usr' at the end if you change this to a test directory).

Code:
PREFIX="/home/USERNAME/myTestdir/usr" ./configure
You might want to change other env vars during configure as well. To see the available options do this

Code:
./configure --help
When you set the install directory or PREFIX everything should get installed to that directory tree. All that will be left to create a Slackware package is to add a description (slack-desc) and then run makepkg!

This is essentially the process that most Slackbuilds use. Take a look at http://slackwiki.org/Writing_A_Slack..._Not_Available. That page tells you everything you need to know about Slackware package creation. The particular section the link points to goes into more detail about what you can do if there is no DESTDIR option. I suggest you take a look at some of the Slackbuild scripts (search at http://slackbuilds.org/) for software you use. After reading them and that wiki page you should have a good idea how this process works.

If the software you are trying to install doesn't use configure or even a Makefile at all it might not need to be installed (or you have to manually move files to install it) or it includes a script to do the work. Try reading the script. Does it have an uninstall routine? Is is made for Slackware or distros like Fedora/Red Hat or Debian/Ubuntu? Does it give you any destination directory options?

If you are still stuck you can try out src2pkg. For those of you thinking about checkinstall read this thread about checkinstall. Basically this program watches changes to your system during the install routine and makes a package out of it. The software does not get installed until you install the new package. This program is not perfect and you might need to tweak some settings once in a while.

Another thing you can do is set up a clean virtual test box using vmware. Simply install your software and note the changes to the system. When you are done revert to a snapshot.

Finally, always read ALL the documentation that comes with software and in particular any README or INSTALL files. Sometimes you find out things that could save you a lot of hassle.
 
Old 12-01-2007, 01:09 PM   #17
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

In response to your post about 'PREFIX' and 'DESTDIR=', I refer you to a post by gnashley (src2pkg author). A great definition to a query about src2pkg!

As for checkinstall, I quit using it with Slackware 12, even with the option 'fstrans=no' flag. I wondered about some of issues before , now with gnashley's explanation things are better.
 
Old 12-01-2007, 04:32 PM   #18
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by onebuck View Post
Hi,

In response to your post about 'PREFIX' and 'DESTDIR=', I refer you to a post by gnashley (src2pkg author). A great definition to a query about src2pkg!

As for checkinstall, I quit using it with Slackware 12, even with the option 'fstrans=no' flag. I wondered about some of issues before , now with gnashley's explanation things are better.
Definitely a good read... including the article on linux.com (http://www.linux.com/feature/121499).
 
Old 12-03-2007, 10:53 PM   #19
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Hi Shadowsnipes,

I think you have read my mind:

Quote:
Originally Posted by shadowsnipes View Post
I mean has anyone else noticed how some Linux distros are starting to feel a lot less like Linux? I think I had a weird dream once where Microsoft managed to get complete rights to a bunch of mainstream distros and they were all bastardized with Windows. Everyone in the world used Linux, but it was no longer Linux. If that happens Slackware will definitely be one of the distros I can still use without Microsoft's permission!
Makes me want to never run X ever again :-)

Andrew
 
Old 12-03-2007, 11:12 PM   #20
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by andrew.46 View Post
Makes me want to never run X ever again :-)
Haha, the funny thing is that even though I use X a lot I usually only use it for Firefox, Audacious, Mousepad, and Battle for Wesnoth. However, I use pico more than Mousepad, I use herrie (an excellent ncurses playlist player) almost as much as Audacious, and I use lynx at least every week. Now only if there was a ncurses version of BfW I would be all set!

The REAL funny thing is that I often use those CL programs while I am still using X (often while playing BfW in fullscreen - good ole tty6)!

 
Old 12-04-2007, 12:27 AM   #21
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,445
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by adityavpratap View Post
Debian and Ubunutu have their own plus points, but none of them give them the pleasure that Slackware provides. The control, stability and zipping fast speed that is characteristic of Slackware is conspicuous by its absence in any other distro I have tried.
Yes. Same here. For me, Slackware was only the second distro that I tried. Now I'm stuck in the Slackware groove and can't switch to anything else. Everything else just feels unnatural, uncomfortable, slow and unresponsive.

I been Slackin' since 1999...

"You can check-out any time you like,
but you can never leave..." BWAHAHAHAHAHA
 
Old 12-04-2007, 02:27 AM   #22
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by shadowsnipes View Post
I mean has anyone else noticed how some Linux distros are starting to feel a lot less like Linux? I think I had a weird dream once where Microsoft managed to get complete rights to a bunch of mainstream distros and they were all bastardized with Windows. Everyone in the world used Linux, but it was no longer Linux. If that happens Slackware will definitely be one of the distros I can still use without Microsoft's permission!
How can one not notice ? A good example would be Ubuntu, with their little corner pop-ups telling you there's updates found, just like in Window$.

I personally think your dream is a vision of the future (as some dreams can be) ... sad, but unfortunately quite likely

But, really that's only one possible path the future can take ... I hope it will not be the one.
 
  


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
Why i keep coming back to Slackware 10.2 skitzo1976 Slackware 32 11-29-2005 05:22 AM
Should I come back to Slackware? Vindane Slackware 7 04-13-2005 08:02 PM
Coming back again to slackware Squall Slackware 7 06-07-2004 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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