LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 05-11-2009, 07:41 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
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.
 
Old 05-11-2009, 07:58 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Many things:

Quote:
Originally Posted by ENRIQUESTEFANINI View Post
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.
 
Old 05-12-2009, 12:27 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
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.
 
Old 05-12-2009, 12:45 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by ENRIQUESTEFANINI View Post
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
 
Old 05-12-2009, 02:34 AM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 15.0
Posts: 8,233
Blog Entries: 61

Rep: Reputation: Disabled
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.
 
Old 05-13-2009, 12:51 AM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
saludo]]]]]]]]

For two rea
 
Old 05-13-2009, 01:20 AM   #7
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
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.
 
  


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
rsync uses wrong directory, has wrong size but right file count? brianpbarnes Linux - Software 1 02-23-2009 05:48 PM
LXer: Likewise Open-Sources Active Directory Authentication for Linux LXer Syndicated Linux News 0 12-06-2007 06:20 AM
directory with kernel sources? irkku Linux - Newbie 1 05-19-2007 11:22 AM
NVIDIA 7174 Driver - Wrong kernel sources error dezza Linux - Hardware 6 05-06-2005 01:34 PM
Wrong modules directory used during boot ... tulear Linux - Software 3 10-30-2004 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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