In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "manually installing sbt on Ubuntu". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "manually install sbt on Ubuntu"!
Manually install sbt on Ubuntu
Sbt (Simple Build Tool, simple build tool), which compiles the Scala or Java language, similar to Maven or Ant, and requires support from jdk1.6 or later. Sbt can be installed and used in windows or Linux environment
1. Download the sbt installation package: sbt-0.13.11.tgz: http://www.scala-sbt.org/download.html
2. Set up a directory and extract the files to the established directory.
$mkdir / home/eric/bigdata/
Unzip $sudo tar-vzvf sbt-0.13.11.tgz-C / home/eric/bigdata/ # to the bigdata directory
3. Create a script file that runs sbt
In the / home/eric/bigdata/sbt directory, create the script file sbt
$cd / home/eric/bigdata/sbt/bin/
$gedit sbt
Add the following to the sbt text file:
SBT_OPTS= "- Xms512M-Xmx1536M-Xss1M-XX:+CMSClassUnloadingEnabled-
XX:MaxPermSize=256M "
Java $SBT_OPTS-jar / home/eric/bigdata/sbt/bin/sbt-launch.jar "$@"
Save and close the file, where the path in the red font is sbt-launch.jar in the extracted sbt package
The absolute path to the file
4. Modify sbt file permissions
$chmod upright x sbt
5. Configure PATH environment variables
$sudo gedit .zshrc
Add the following to the profile file:
Export SBT_HOME=/home/eric/bigdata/sbt
Export PATH=$SBT_HOME/bin:$PATH
$source .zshrc # to make the changes effective
6. Test whether sbt is installed successfully
When it is executed for the first time, some jar packages will be downloaded before it can be used normally. Make sure that you are connected to the network and will be displayed after the installation is successful.
The contents are as follows:
➜~ sbt sbt-version
[info] Set current project to eric (in build file:/home/eric/)
[info] 0.13.11
At this point, I believe you have a deeper understanding of "manually installing sbt on Ubuntu". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.