Created
July 28, 2013 07:27
-
-
Save erukiti/6097809 to your computer and use it in GitHub Desktop.
【初心者向け】Scalaを動かす ref: http://qiita.com/erukiti/items/31a17a307ad58a601880
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cd /usr/local | |
| $ tar zxvf scala-2.10.2.tgz | |
| $ ln -s scala-2.10.2 scala |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ scala | |
| Welcome to Scala version 2.9.2 (OpenJDK 64-Bit Server VM, Java 1.6.0_24). | |
| Type in expressions to have them evaluated. | |
| Type :help for more information. | |
| scala> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cd /usr/local | |
| $ tar zxvf sbt.tgz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ sbt | |
| Getting net.java.dev.jna jna 3.2.3 ... | |
| 〜〜〜中略〜〜〜 | |
| []info] Set current project to default-xxxxxx (in build file:xxxxxxxx) | |
| > |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cd /usr/local | |
| $ unzip play-2.1.2.zip | |
| $ ln -s play-2.1.2 play | |
| $ mkdir play/framework/sbt/boot | |
| $ chmod go+w play/framework/sbt/boot | |
| $ chmod -R go+w play/repository/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ play | |
| Getting net.java.dev.jna jna 3.2.3 ... | |
| 中略 | |
| play! 2.1.2 (using Java 1.6.0_24 and Scala 2.10.0), http://www.playframework.org | |
| This is not a play application! | |
| Use `play new` to create a new Play application in the current directory, | |
| or go to an existing application and launch the development console using `play`. | |
| You can also browse the complete documentation at http://www.playframework.org. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ play new test | |
| _ _ | |
| _ __ | | __ _ _ _| | | |
| | '_ \| |/ _' | || |_| | |
| | __/|_|\____|\__ (_) | |
| |_| |__/ | |
| play! 2.1.2 (using Java 1.6.0_24 and Scala 2.10.0), http://www.playframework.org | |
| The new application will be created in /Users/erukiti/test | |
| What is the application name? [test] | |
| > | |
| Which template do you want to use for this new application? | |
| 1 - Create a simple Scala application | |
| 2 - Create a simple Java application | |
| > 1 | |
| OK, application test is created. | |
| Have fun! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cd test | |
| $ play | |
| [info] Loading project definition from /xxxxxx/test/project | |
| [info] Set current project to test (in build file:/xxxxxx/test/) | |
| _ _ | |
| _ __ | | __ _ _ _| | | |
| | '_ \| |/ _' | || |_| | |
| | __/|_|\____|\__ (_) | |
| |_| |__/ | |
| play! 2.1.2 (using Java 1.6.0_24 and Scala 2.10.0), http://www.playframework.org | |
| > Type "help play" or "license" for more information. | |
| > Type "exit" or use Ctrl+D to leave this console. | |
| [test] $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment