Linux manual sbt installation process, linuxsbt

Source: Internet
Author: User

Linux manual sbt installation process, linuxsbt

Ubuntu14 manually installs sbt

See Official Website configuration instructions http://www.scala-sbt.org/release/tutorial/Manual-Installation.html

 

1. Download sbt universal platform compressed package: sbt-0.13.5.tgz

 

http://www.scala-sbt.org/download.html

 

 

2. Create a directory and decompress the file to the Created directory.

$ sudo mkdir /opt/scala/sbt$ sudo tar zxvf sbt-0.13.5.tgz -C /opt/scala/

 

3. Create a script file to start sbt

/* Select a location and create a script text file to start sbt, such as a new text file named sbt under the/opt/scala/sbt/directory */
$ Cd/opt/scala/sbt/
$ Vim sbt
/* Add it to the sbt text file
BT_OPTS = "-Xms512M-Xmx1536M-Xss1M-XX: + CMSClassUnloadingEnabled-XX: MaxPermSize = 256 M"
Java $ SBT_OPTS-jar bin/sbt-launch.jar "$ @"
Press esc and enter wq to save and exit. Note that the path in the red font can be absolute or relative, as long as you can properly locate the sbt-launch.jar file in the decompressed sbt package */

/× Modify sbt file permissions ×/
$ Chmod u + x sbt

4. Configure the PATH environment variable to ensure that the sbt command can be used in the console.

$ Vim ~ /. Bashrc
/* After adding the following code to the end of the file, save and exit */
Export PATH =/opt/scala/sbt/: $ PATH

/* Make the configuration file take effect immediately */
$ Source ~ /. Bashrc

 

5. test whether the sbt is successfully installed.

/* During the first execution, some packages will be downloaded before they can be used properly. To ensure that the network is connected, the following figure is displayed after the installation is successful */
$ Sbt-version
[Info] Set current project to sbt (in build file:/opt/scala/sbt /)
[Info] 0.13.5

 

 


LINUX Installation Process

I have always installed hard drives, OK?
Zhidao.baidu.com/question/18202796.html

Www.cublog.cn/u/25309/showart.php? Id = 200377

If you want to install the CD, set the bios to the first boot (this may be the case, but you have never tried to install the CD)
Www.pphelper.com/tech/27/133.html

Steps and principles of installing software in linux

Why? This is really hard to say ~~
To install software, you must have the installation package of the software! In WINDOWS, there is only one EXE or compressed.
There are about three types of LINUX: RPM, DEB, and source code, which are generally compressed and suffixed with *. gz and *. bz2.
You need the package first! The Red Hat series is Generally RPM. You can run the command: rpm-ivh installation package name. rpm, or right-click the Package Manager to install it!
Deb is similar. You can double-click it ~

Source code is more troublesome. You need to compile it first and install it!
Tar-zxvf/-jxvf installation package name .gz/bz2
Go to the decompressed directory and run:./configure compilation.
Re-install: make & make install
If there is no compilation error, the installation will be completed without errors!
Reference: my brain!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.