LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-26-2007, 01:13 PM   #1
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199

Rep: Reputation: 40
Installing Software / Access


I have just reinstalled Slackware again after messing a few things up this time i want to get it all right and the things that have been bothering me the most are where to install software and how to give my user account a little more access.

If im on the right track a good place to compile and install all of my software would be /usr/local

This is where my next problem comes in. Do i have to login as root to be able to install everything as i have no write access here or am i missing something?

Thanks for any info

Sav
 
Old 05-26-2007, 01:18 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yes, you need to be root... that's the point of it existing. and in general *IF* you do wish to compile your own software, you're best just to let it use the programs defaults, typically /usr/local/bin etc...
 
Old 05-26-2007, 01:28 PM   #3
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199

Original Poster
Rep: Reputation: 40
Its not that i wish to its a lot to do with the fact i have to.

I have been missing something then as i was refereing to the actual building of the program I thought that this dir would contain parts of the program guess not so can i remove this folder?

And if the program doesnt need installing just copy it over with root.

Thanks

Sav
 
Old 05-26-2007, 02:32 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Do not remove /usr/local - it's an integral part of your system. The message from Acid is that if you let the program install itself as per it's own setup, it will install to the correct places. Unless you have a very good reason to do so, installing a program elsewhere is not a good thing. If you do that and another program relies on it you cannot guarantee that the newer program will work.
 
Old 05-27-2007, 09:03 AM   #5
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199

Original Poster
Rep: Reputation: 40
Sorry i didnt mean to remove usr/local

What i was getting at was should i create a dir in my /home folder say software build/my new app compile and build it there. Would it then be safe to remove this dir (my new app)? or will there be files in there that are needed?

Sav
 
Old 05-27-2007, 11:38 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
I can't see what you would gain by doing that. If you build the whole thing under your user account in ~ you will have a program only usable by your user. If you then move it, you will have to su to root to do that. You are building in extra steps. I'd suggest just doing the install as normal.
 
Old 05-27-2007, 12:22 PM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
In my experience, most software can safely be built in your home directory - there usually is a script that will move the binaries into the right directories for you. When all is properly set up, the original source file can simply be dumped. Of course, when an application requires manual installation, that is something different. In that case you do need to move it to the suggested directory - but then again, most of such apps don't need to be moved at all and they'll run from wherever they are.
 
  


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
Any software to access mobile phones? zahadumy Linux - Software 2 08-05-2007 02:35 AM
software access points!! vishamr2000 Linux - Wireless Networking 5 04-10-2006 01:23 PM
remote access software shadowsurfer Linux - Newbie 7 09-22-2005 09:22 AM
Looking for App to allow internet access to VB software oudent Linux - Software 0 04-10-2003 06:30 PM
Question on installing software and starting software rootlinux Linux - Newbie 5 01-19-2002 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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