2

http://cingusoft.posterous.com/install-scala-on-mac-os-x

I changed .profile and save. after I type

source .profile

at first it works, but after I close terminal and re-opened, It doesn't work.

How do I this problem?

Getting a Scala interpreter to work

I solved on my own.

1
  • 2
    On OS X i prefer brew to install SW. Install brew: "github.com/mxcl/homebrew/wiki/installation" then you can install scala or other tools with "brew install scala". And "brew install sbt" Commented Nov 24, 2011 at 11:26

2 Answers 2

5

You should add this line to your shell autoload file: .bashrc for bash or .zshrc for zsh.

Sign up to request clarification or add additional context in comments.

2 Comments

Sorry. I don't understand. please any code for this? I'm newbie in unix;
If you type echo $SHELL you'll find what shell you're using. If it's bash you'll have to add export PATH="/Users/your_user/scala/bin:$PATH" to your .bashrc file.
0

Latest MacOS Catalina Scala deployment with Apache Spark and Kafka:

  1. Install Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  1. Install Java JDK8
brew cask install adoptopenjdk/openjdk/adoptopenjdk8
  1. Install SBT
brew install set
  1. Install Scala (latest 2.13.3)
brew install scala
  1. Install Spark (latest 3.0.0)
brew install apache-spark
  1. Install Kafka (latest 2.5.0)
brew install kafka
  1. Etc. for Cassandra
brew install cassandra ...

Latest Ubuntu 20.04 "One-Click" deployment:

curl -Lo cs https://git.io/coursier-cli-linux && chmod +x cs && ./cs setup

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.