Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
|
01-29-2014, 08:19 AM
|
#1
|
LQ Newbie
Registered: Jan 2014
Location: Arkansas
Distribution: Slackware-current
Posts: 9
Rep:
|
How do you install programs system-wide?
Hello and thank you for taking the time to look at my thread.
The problem I'm having is that I can't for the life of me seem to install the Java Development Kit system-wide. Now, I don't usually use an account other than root and decided it was time to change that. Thus, due to my lack of experience in said subject, I have no clue how to go about installing programs for more than just root.
I pulled the program in question (jdk-7u45-linux-x64) off of slackbuilds.org as per the usual and installed it. However, I can't figure out how to get it to show up under the user account I created a few hours ago (tells you how new to the whole "user" thing I am).
Any help would be greatly appreciated. If you have any more questions about my setup, please feel free to ask.
Steven
|
|
|
01-29-2014, 08:32 AM
|
#2
|
Member
Registered: May 2004
Distribution: BSD
Posts: 269
Rep:
|
Hi Steven,
if you installed the resulting slackbuilds.org package via installpkg or upgradepkg --install-new, it should be fine. If you open a terminal as user and type, e.g., `javac' or java, does it return `command not found'? I *think* the relevant files in /etc/profile.d should load and set up PATH properly with a default account, if not check if a file like /etc/profile.d/openjdk.sh is executable (I use Alien BOB's openjdk, which installs an openjdk.csh and openjdk.sh file).
lems
Last edited by lems; 01-29-2014 at 08:40 AM.
|
|
|
01-29-2014, 08:44 AM
|
#3
|
LQ Newbie
Registered: Jan 2014
Location: Arkansas
Distribution: Slackware-current
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by lems
Hi Steven,
if you installed the resulting slackbuilds.org package via installpkg, it should be fine. If you open a terminal as user and type, e.g., `javac' or java, does it return `command not found'? I *think* the relevant files in /etc/profile.d should load and set up PATH properly with a default account.
lems
|
lems:
Thanks for the reply.
It does indeed return `command not found`. I looked into the scripts in /etc/profile.d and there is indeed a jdk.sh file that points to the right dirs, but it doesn't seem to be loading on this account. How odd.
|
|
|
01-29-2014, 08:47 AM
|
#4
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
Is the jdk.sh file set executable?
|
|
|
01-29-2014, 08:56 AM
|
#5
|
LQ Newbie
Registered: Jan 2014
Location: Arkansas
Distribution: Slackware-current
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by gnashley
Is the jdk.sh file set executable?
|
gnashley:
I checked what you said and it turns out it wasn't. Setting the file executable did the trick. Makes me wonder why it wasn't...
Either way, thank you all for your help. It is much appreciated.
Steven
|
|
|
01-29-2014, 11:54 AM
|
#6
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep:
|
Had the same problem, if you logout and login again it would solve it. Read the "Java not found" part in the end http://docs.slackware.com/howtos:software:java
|
|
|
All times are GMT -5. The time now is 11:30 AM.
|
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
|
|