LinuxQuestions.org
Visit Jeremy's Blog.
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 09-12-2014, 03:59 PM   #1
linuxmantra
Member
 
Registered: Dec 2013
Posts: 104

Rep: Reputation: Disabled
Scala Install in RHEL6.4


I downloaded scala 2.11.2 tar file from official website and extracted the file
# cd /tmp
# tar -xvf scala-2.11.2.tgz
comes with scala-2.11.2 directory. Following are the content of directory:

drwxr-xr-x 2 root root 4096 Sep 12 15:10 bin
drwxr-xr-x 4 root root 4096 Sep 12 15:10 doc
drwxr-xr-x 2 root root 4096 Sep 12 15:10 lib
drwxr-xr-x 3 root root 4096 Sep 12 15:10 man

First question:
What is the appropriate location for this scala.i.e. /opt, /usr/, or /usr/local etc.
Second: if I type # scala in command line, its should comes with:
Welcome to Scala version 2.11.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_45).
Type in expressions to have them evaluated.
Type :help for more information.

scala>

...And it does comes, because I set the environmental variable as :
# export PATH=$PATH:/tmp/scala-2.11.1
Where should I enter this environmental variable so that they are persistent even after reboot. Is it /etc/profile OR /etc/profile.d/ Or ~/.bash_profile etc?

Thank you in Advance..
 
Old 09-12-2014, 04:07 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Question #1: You can put it in /opt
Question #2: You can put it in your ~/.profile file. If you want it to be system-wide then put it in the /etc/profile file.
jdk
 
Old 09-12-2014, 04:10 PM   #3
linuxmantra
Member
 
Registered: Dec 2013
Posts: 104

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jdkaye View Post
Question #1: You can put it in /opt
Question #2: You can put it in your ~/.profile file. If you want it to be system-wide then put it in the /etc/profile file.
jdk
Thank you.. but in my company we put env. variable depending up on service account. For example 'wbser' is a service account. RE sets env. variable for this and put inside # /etc/profile.d/wbser.sh
 
Old 09-13-2014, 12:18 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Sorry, I guess I don't understand. If you know the answer why are you asking the question. Your first question was "What is the appropriate location for this scala..." I answered that question. I have no idea how your company works.

Your second question was "Where should I enter this environmental variable so that they are persistent even after reboot." I gave you an answer to that question. Putting it in the files I suggested will make them persistent even after reboot.

Please clarify what exactly you want to know. I have absolutely no idea.
jdk
 
1 members found this post helpful.
  


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
Unable to install RHEL6.1 on my pc krishnakishorerhce Linux - Software 1 07-02-2013 10:19 PM
Unable to install RHEL6.1 on my pc krishnakishorerhce Linux - Server 1 07-02-2013 10:18 PM
Unable to install RHEL6.1 on my pc krishnakishorerhce Linux - General 1 07-02-2013 10:05 PM
scala mcnalu Slackware 12 11-02-2011 08:28 AM
Install RHEL6 32 bit harshaabba Linux - Server 9 02-16-2011 04:52 AM


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