Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
|
|
05-03-2006, 01:41 AM
|
#1
|
Senior Member
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519
Rep:
|
If not root ...then what user to install is best?
Hi all,
If root is not to be used for ANY software installs, then really what account is on slackware? Wheel?
For example, I wanted to install KMymoney tonight from source. Which first of all I am NOT happy at all with sourceforge...there are no md5 checksums on so many of the files that they host. I truly belive that should be a minimum.
That said I ran viruscan on it...but who knows really.
Now I can do "configure" and "make" on the kmymoney source, but when I run "make install" i get errors. Then switch up to root and boom it works. Nice looking program I might add.
Now From the install help file it says:
Quote:
"By default, `make install' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.
|
So I tried "configure --prefix=home/myname/kmymoney"
But console gave me errors for inputting that wrongly.
Many others don't...they simply offer make and make install...which in my mind means you have to be root.
Now I know I can get files off of linuxpackages.net...but those guys compiled from md5 checksum-less files too, let alone the package build quality. Many of the packages there require gnome which I dont like. I'm 6 for 20 so far in being able to use/run any app's from linuxpackages that's why I'm doing them from source...which so far to date work like a charm almost allways...if "root".
What do you guys do?
Last edited by Old_Fogie; 06-09-2006 at 04:13 PM.
|
|
|
05-03-2006, 02:40 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
virtually all tarballs have a configure script offering a --prefix. this is a very standard feature that comes from the default framework, so is not app specific. the general recommendation is to do what you did above, make as a normal user and make install as root. you can always allow your user to do a "sudo make install" via /etc/sudoers so you don't actaully become root, but the end result is the same.
|
|
|
05-03-2006, 04:01 AM
|
#3
|
Senior Member
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519
Original Poster
Rep:
|
ok thank you very much I appreciate your help.
|
|
|
05-03-2006, 05:52 AM
|
#4
|
Member
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536
Rep:
|
Quote:
So I tried "configure --prefix=home/myname/kmymoney"
|
Maybe it's a typo, but there should be a leading / before home.
Also, have a look at checkinstall, it builds tgz packages which you can then install properly. This is preferable to 'make install', since it is then under package management (you can remove it with removepkg etc).
If you want to install under your ~ directory (which I do for some things too), then also have a look at stow. This is a perl script for installing/deleting programs. It creates a symlink farm in a shared directory, which points back to each packages files. This much easier than installing each program to it's own directory (saves you having to link the bin/man/info/etc directories yourself).
Quote:
Now I know I can get files off of linuxpackages.net...but those guys compiled from md5 checksum-less files too,
|
There is (or should be) a link on each package page where you can verify the md5sum.
|
|
|
05-03-2006, 02:04 PM
|
#5
|
Senior Member
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519
Original Poster
Rep:
|
I downloaded and installed from the checkinstall homepage "checkinstall-1.6.0-i386-1.tgz" under slackware 10.2
I then tried to checkinstall my installation of the HP software...it got close to the end and then aborted.
However, I went and typed make install and the HP software installed.
Is it better to put checkinstall in from source?
|
|
|
05-03-2006, 02:28 PM
|
#6
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
|
Did you checkinstall as root? (sudo may not work)
|
|
|
05-04-2006, 12:40 AM
|
#7
|
Senior Member
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519
Original Poster
Rep:
|
yes. i think i'm going to try out the source beta and give that a shot.
|
|
|
05-04-2006, 04:54 AM
|
#8
|
Member
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536
Rep:
|
checkinstall is just a shell script (though it includes the installwatch C library), so the package shouldn't be any different from installing from source. However, there have been a few bugs and I've experienced similar problems with an older beta version. Occasionally though, you might find a package that just doesn't want to work. In that case, you can always override the prefix during make install to put it in a tmp directory and then use makepkg. That's what I usually do when checkinstall flakes out.
|
|
|
05-04-2006, 10:00 AM
|
#9
|
Member
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Rep:
|
It's best to get the checkinstall slackware package from slackware.com, http://slackware.it/en/pb/browse.php...a/checkinstall and install it with installpkg as root. See man installpkg.
|
|
|
05-04-2006, 10:01 AM
|
#10
|
Member
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Rep:
|
I see you did that already.
|
|
|
05-04-2006, 03:40 PM
|
#11
|
Senior Member
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519
Original Poster
Rep:
|
Yea I put it in from there too, even installed from source.
I've had no luck with it at all. It makes the packages...but doesnt do it correctly.
I tried HP printing software, berkley database and no luck.
As root doing 'make install' works fine for these packages that fail, I dont get it.
Last edited by Old_Fogie; 06-09-2006 at 04:14 PM.
|
|
|
05-04-2006, 03:59 PM
|
#12
|
Member
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Rep:
|
If you use checkinstall, the only difference is you type checkinstall instead of make install. You need to be root to install normally. Which hp printing software did you install?
|
|
|
05-04-2006, 06:13 PM
|
#13
|
Senior Member
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519
Original Poster
Rep:
|
I dont have the link handy, but I went to the homepage for the project as sourceforge as I was re-directed there from Hewlet Packard. I believe it was HPLIP. It was the latest stable version. It works well so long as I do make install as root. Yeah when I run checkinstall I get the wizard for it to creat a package. Some programs it completes successfully, the package creation that is, but the packages really are not put together right or just dont work install. I'm using packagetool as root to install the packages I made with checkinstall. Very strange.
|
|
|
05-05-2006, 09:43 AM
|
#14
|
Member
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Rep:
|
How many versions of checkinstall have you got on your system?
|
|
|
05-05-2006, 11:18 AM
|
#15
|
Member
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536
Rep:
|
OK, I just tried to use checkinstall to build an mplayer package and it failed (it created the package but it was empty except for a few directories). Then I tried it with joe, same thing.
I think there must be somthing wrong with it (version 1.6.0).
However, you can easily create packages with makepkg.
|
|
|
All times are GMT -5. The time now is 08:44 PM.
|
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
|
|