Paul Boosz
Paul Boosz

Reputation: 71

-bash: scala: command not found

I'm trying to install scala on my mac (Maverick). I downloaded and unarchived it. I then put myself from where it was unarchived and inside the /bin folder in the terminal. But when I run "scala" or "scalac" I get :

-bash: scala: command not found

Why?

Upvotes: 7

Views: 22278

Answers (3)

QIAN KEQIAO
QIAN KEQIAO

Reputation: 641

I get the same issue and quickly I found everything is fine, if you write the correct path into your .bash_profile.

The only thing you need is to close current terminal and open a new one, on which Scala would work.

Hope this work for you.

Upvotes: 4

Zee
Zee

Reputation: 1420

I always suggest that mac users install homebrew and use homebrew as their primary package installer to install software.

Installing scala is as simple as

brew install scala

Homebrew will also install/fix java dependencies for you and handle path issues (I believe)

Upvotes: 12

ozoli
ozoli

Reputation: 1424

do you have Java installed and available on your PATH http://sourabhbajaj.com/mac-setup/Java/README.html the same author also provides good Scala / SBT setup info http://sourabhbajaj.com/mac-setup/Java/README.html

Upvotes: 1

Related Questions