Solved

Installing Software Globally

Posted on 2001-09-15
5
185 Views
Last Modified: 2013-12-15
Hi;

I'm just starting out with linux.  I am running Suse 7.2 personal edition.

How can I install new software such that it is accessible by all users from any directory?

For instance anyone can type "perl foo" from any directory and run perl.

I would also like to do some development on my linux box.  I would like to set up a "classpath" variable such that linux will first check for classes, compiled files in whatever directory the user is currently in and then go to a central directory that would server as a "code dump".

Is there a config file somewhere where I can create and set such a variable once and have it be global to everyone, everywhere?

How?

Thanks in advance

Steve
0
Comment
Question by:Steve34
5 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 6485620
software is installed in /opt (complex applications) and/or /usr/local/bin (single programs), usually

To add a special path to all user's PATH environment variable, use the shell start up file, like
    /etc/profile for shell (sh, ksh, bash, etc.)
    /etc/csh.cshrc for csh and tcsh

and modify the PATH variable to your requirements
0
 

Expert Comment

by:modulo
ID: 7498073
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now