LinuxQuestions.org
Help answer threads with 0 replies.
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 02-24-2005, 09:34 PM   #1
rkthornton
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Rep: Reputation: 0
Best directory to install programs?


Hi, excuse the newb questions...running Red Hat 9 using Gnome gui

Problem:

I installed wings3d via the terminal with the sh <filename> command . I was logged in as root when I did the installation. Unfortunately, Wings automatically installs itself in the root folder (which I didn't like), thus I edited with emacs and changed the "default directory" section to something like "/usr/local/myprogs/wings3d". I then saved and tried to install again and it still defaulted to the root folder.

I also tried to drag/drop the installation folder that was created in root to my desired location. Wings would not run after that. Next, I moved the folder back to /root and everything worked fine. I then logged off root and back to into my user account and tried to make a launcher to Wings on the panel. I tried to browse for the program but I have no access to root folder...I tried to su in terminal, but this only grants root access in the terminal not gnome.

I guess I could install under my user account, but I hate when I cant figure things out so here I am.

Questions:

Is it possible to force a program to install in a directory other than a default as in this case?

How do you grant root privelages so that you can access directories inside the gnome/gui environment (not just get su access via the terminal)?

Why would the wings3d app not work when moved the folder in which it was installed?



Thanks for your help, I'm a 3d professional new to the linux environment. I switched to linux for the speed increase in Maya. I'm very impressed with linux thus far and even more impressed with the community. /tipshat
 
Old 02-24-2005, 09:46 PM   #2
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
i'm partial to installing packages that are self-sufficient (phpedit, games, Mozilla, etc.) and not distro-specific under /opt/ - just pick a spot and be consistent about it - and avoid obvious no-nos like /etc, /proc, /dev, /var, etc.
 
Old 02-24-2005, 10:06 PM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
You can put wings anywhere you want...just make sure you edit the ROOTDIR variable in the wings wrapper (that's the script named "wings" in the root of the wings directory).

Last edited by mikshaw; 02-24-2005 at 10:07 PM.
 
Old 02-24-2005, 10:07 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
According to convention (and the FHS) user-installed binaries go in /usr/local/bin

Typically most apps allow you to pass an option to the configure script ie:
--install-path=/usr/local/

Then config files will be in /usr/local/etc, libs in /usr/local/libs etc etc...
Usually "./configure --help" will print a list of available options.

As KimVette mentioned, standalone apps go in /opt, but there is much contention between distros as to what exactly is standalone and what isn't. Generally large apps like openoffice, acrobat reader etc go here.

My advice: Unless you have a compelling reason, install software using your distro's package management software (in your case RPM). Saves a lot of hassle in the long run.
 
Old 02-24-2005, 11:01 PM   #5
rkthornton
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks to all for the help! I smile every time I boot up and I don't see windows or apple logos.

I hope to be as helpful for other newbs in the future
 
Old 02-25-2005, 02:20 PM   #6
Fiddlerontheroo
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Rep: Reputation: 0
Angry installing from sources

Thanks for everyone.
My problem is that i can get past the untar and ./configure steps

When i go to make i get ++error messages , 'make ***error 1/2 'Recurring error'
Anyone got an idea what is wrong'

I (usually) do not use prefix with ./compile but assume that the package will find its own way around (?/usr/local/)

When i download i put the packages in a directory
/home/my_name/packages /package-1 and untar them in there
cd to that directory and ./configure make and make install.

I s there any difference for libraries
Some of the library packages does not have configure files but just
??????.o files i asume object files
Or some have only .cpp and .h files
How do i handle them
Thanks
 
Old 02-25-2005, 06:55 PM   #7
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Can you post some specifics? Tell us which package, distribution, and the exact error messages (copy & paste the exact errors here) - also did you read the docs that came with the package to make sure you have the system requirements satisfied?
 
  


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
programs have no access to home directory. SnowSurfAir Linux - Software 4 07-14-2005 01:05 AM
telling `make install` to install in a specific directory?!? black hole sun Linux - Software 3 02-08-2005 10:18 PM
What directory do I install new programs jkruer01 Linux - Newbie 1 04-05-2004 08:11 PM
Install programs to which directory? sonofdbn Slackware 2 03-07-2004 09:58 AM
preventing directory traversal in programs tristan_vdv Linux - Security 4 06-04-2002 05:03 AM

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

All times are GMT -5. The time now is 05:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration