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.
|
 |
05-11-2009, 07:41 PM
|
#1
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Rep:
|
Installing sources in the wrong directory.
I installed a certain package, say foo.tar.
gz in this way: I untared foo.tar over directory .../juan/.
Then I compiled the sources:
.../juan> ./configue
.../juan> make
.../juan> make install
I saw no notification of a mistake at the end of any of each step issued on the console.
However, in /var/log/packages/., foo was no where to be
seen. And the case is that the programs ran well. Yet,
the main program was prgrm, and the installation left
a .../juan/.../prgrm.1. But 'man prgrm' got 'No manual
entry for prgrm'. Should I have untared over another directory? Is there a preferred dir for an installatio?
If it is so, please let me know. Regards.
|
|
|
05-11-2009, 07:58 PM
|
#2
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Many things:
Quote:
Originally Posted by ENRIQUESTEFANINI
I installed a certain package, say foo.tar.
gz in this way: I untared foo.tar over directory .../juan/.
Then I compiled the sources:
.../juan> ./configue
.../juan> make
.../juan> make install
|
I am concerned about what user did you use to install this. The last step, "make install", writes to the root file system, which means that you usually will not be able to run it unless you are root, regulars users can't write on the system directories.
So, if you were operating as a user there must be an error, because users can't install software on system directories.
And if you were operating as root then you shouldn't do that. Only for the last step root is required, so the whole thing would be more like this:
Code:
$ ./configure
$ make
$ su -c 'make install'
<enter root password>
Quote:
However, in /var/log/packages/., foo was no where to be
seen.
|
I assume that /var/log/packages is where your distribution register the installed packages. Unfortunatelly, you didn't install a package, you compiled manually from source so you got to keep the pieces yourself. The system doesn't know anything about this software that you install by hand. If you want your distro to be aware of what you install, use the specific package manager for your distribution.
|
|
|
05-12-2009, 12:27 AM
|
#3
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
You assume correctly. /var/log/packages is where my
distribution stores the packages and you have open my
eyes a bit. I installed as root (the three steps). I'll
follow your kind indications when I have to install soft-
ware in the future.
I'd like to enter into some detail. sox is an audio related program, whose manual says:
MP3 support in sox requires either or both EXTERNAL libmad and libmp3lame libraries. And these libraries were provided by foo.tar.gz during the instalation (in fact foo is nothing
else than a collection of libraries)
Does the word external mean that
that those libraries can be invisible to the system? For in this case, the source of malfunctioning must be somewhere else.
---------------------------------------------------------
Errata: 'And the case is that the programs ran well'.
Correction: the libraries didn't do their work, for when
running sox, sox output 'Sorry. No MP3 encoding support'.
--------------------------------------------------------
But enough of this. I presume you have more important things
to do than teaching newbies. Regards.
|
|
|
05-12-2009, 12:45 AM
|
#4
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by ENRIQUESTEFANINI
I'd like to enter into some detail. sox is an audio related program, whose manual says:
MP3 support in sox requires either or both EXTERNAL libmad and libmp3lame libraries.
|
I am not familiar with slackware to a big extent so I really don't know the state of things. But I am fairly familiar with sox, and it's a very common package that I think should be available in the form of an slackware package (forgive me if it isen't but it would be indeed very strange). Why are you wanting to compile it from source?
Using a standard package for your distro would solve all your problems, that is, unless you have a good reason to compile from source.
Quote:
But enough of this. I presume you have more important things
to do than teaching newbies. Regards.
|
Well, the forums are here to seek for help. If I weren't willing to give you a hand I wouldn't have "wasted" my time posting an answer in first place. So don't worry 
|
|
|
05-12-2009, 02:34 AM
|
#5
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep: 
|
Sox is already included in Slackware. Did you do a full install? If not, get the package off your CD/DVD or one of the mirrors. Always check if there's an official package available, or a SlackBuild, and if you need to compile anything from source use src2pkg.
http://slackbuilds.org/
http://distro.ibiblio.org/pub/linux/...nload/src2pkg/
Last edited by brianL; 05-12-2009 at 02:41 AM.
|
|
|
05-13-2009, 12:51 AM
|
#6
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
saludo]]]]]]]]
For two rea
|
|
|
05-13-2009, 01:20 AM
|
#7
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
Yes. Slack comes with sox. Only that sox needs the libs. Unfortunately the libs are not in slack. So the need to compile (the libs). What I shall do is to uninstall the software in reverse order and reinstall. I hope this'll solve the problem. But, after all, it's only sound. Sorry for the delay.
|
|
|
All times are GMT -5. The time now is 05:11 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
|
|