LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-29-2014, 07:19 AM   #1
mercuryargentum
LQ Newbie
 
Registered: Jan 2014
Location: Arkansas
Distribution: Slackware-current
Posts: 9

Rep: Reputation: Disabled
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
 
Old 01-29-2014, 07:32 AM   #2
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 119Reputation: 119
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 07:40 AM.
 
Old 01-29-2014, 07:44 AM   #3
mercuryargentum
LQ Newbie
 
Registered: Jan 2014
Location: Arkansas
Distribution: Slackware-current
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lems View Post
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.
 
Old 01-29-2014, 07:47 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Is the jdk.sh file set executable?
 
Old 01-29-2014, 07:56 AM   #5
mercuryargentum
LQ Newbie
 
Registered: Jan 2014
Location: Arkansas
Distribution: Slackware-current
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gnashley View Post
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
 
Old 01-29-2014, 10:54 AM   #6
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
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
 
  


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
[SOLVED] Firefox/Seamonkey: How to install add-ons system-wide? gargamel Linux - Software 4 08-18-2012 06:08 PM
how to install John the Ripper jumbo from source system wide zagreus360 Linux - Software 13 04-23-2012 06:05 PM
How to have a Local Install have Precedence Over a System Wide Install? haziz Linux - Software 2 01-05-2012 10:53 AM
*system-wide* KDE install, how? webvandals Linux - Software 5 03-05-2004 11:48 PM
Restoring system-wide settings to post-install condition Ac. K. Linux - Software 2 01-15-2004 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:03 AM.

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