Created
February 19, 2012 19:44
-
-
Save gakuzzzz/1865400 to your computer and use it in GitHub Desktop.
Revisions
-
gakuzzzz revised this gist
Feb 21, 2012 . 1 changed file with 2 additions and 176 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,178 +1,4 @@ **ScalaJPのWikiに置いて貰いました。** `Scala開発環境構築手順`_ .. _Scala開発環境構築手順: https://github.com/scalajp/scalajp.github.com/wiki/scala-develop-environment -
gakuzzzz revised this gist
Feb 20, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Linux ``chmod u+x ~/bin/sbt`` を実行 いずれの環境も、インストール後 sbt(sbt.bat) に環境変数Path を通す *********************************************************** -
gakuzzzz revised this gist
Feb 20, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -32,7 +32,7 @@ Linux ``~/bin/sbt`` を以下の内容で作成 :: java -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -jar `dirname $0`/sbt-launch.jar "$@" ``chmod u+x ~/bin/sbt`` を実行 -
gakuzzzz revised this gist
Feb 20, 2012 . 1 changed file with 5 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -21,22 +21,23 @@ Mac ``brew install sbt`` Windows http://www.scala-sbt.org/download.html から msi をDLして実行 Linux ``yum install sbt`` もしくは ``apt-get install sbt`` **(注意)** まだ yum と apt-get は準備中の模様 http://www.scala-sbt.org/download.html#manual から launch.jar をDL して ``~/bin/`` に配置 ``~/bin/sbt`` を以下の内容で作成 :: java -Xmx512M -jar `dirname $0`/sbt-launch.jar "$@" ``chmod u+x ~/bin/sbt`` を実行 いずれの環境も、インストール後 sbt(sbt.bat) を環境変数Path に通す *********************************************************** -
gakuzzzz revised this gist
Feb 20, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Linux **(注意)** まだ yum と apt-get は準備中の模様。 http://www.scala-sbt.org/download.html#manual から launch.jar をDL して ``~/bin/`` に配置。 ``~/bin/sbt`` を以下の内容で作成 :: -
gakuzzzz revised this gist
Feb 20, 2012 . 1 changed file with 10 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -26,6 +26,16 @@ Windows Linux ``yum install sbt`` もしくは ``apt-get install sbt`` **(注意)** まだ yum と apt-get は準備中の模様。 http://www.scala-sbt.org/download.html#manual から launch.jar をDL して ``~/bin/`` に配置。 ``~/bin/sbt`` を以下の内容で作成 :: java -Xmx512M -jar `dirname $0`/sbt-launch.jar "$@" ``chmod u+x ~/bin/sbt`` を実行 インストール後、環境変数Pathに通すこと -
gakuzzzz revised this gist
Feb 19, 2012 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -139,7 +139,9 @@ IntelliJ IDEA の SBT Plugin に sbt のパスを設定 1. メニューの「File」 -> 「Settings」を選択 2. 「SBT」 -> 「SBT Launcher JAR file」でインストール済みの sbt-launch.jar を指定 * brew で sbt をインストールした場合 ``/usr/local/Cellar/sbt/0.11.2/libexec/sbt-launch.jar`` にインストールされる 3. 「OK」を押下 -
gakuzzzz revised this gist
Feb 19, 2012 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -139,6 +139,7 @@ IntelliJ IDEA の SBT Plugin に sbt のパスを設定 1. メニューの「File」 -> 「Settings」を選択 2. 「SBT」 -> 「SBT Launcher JAR file」でインストール済みの sbt-launch.jar を指定 - brew で sbt をインストールした場合 ``/usr/local/Cellar/sbt/0.11.2/libexec/sbt-launch.jar`` にインストールされる 3. 「OK」を押下 -
gakuzzzz revised this gist
Feb 19, 2012 . 1 changed file with 9 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -16,9 +16,15 @@ sbt インストール http://www.scala-sbt.org/ Mac MacPorts だとバージョンが古いので homebrew を使用 ``brew install sbt`` Windows http://www.scala-sbt.org/download.html から msi をDL Linux ``yum install sbt`` もしくは ``apt-get install sbt`` インストール後、環境変数Pathに通すこと -
gakuzzzz revised this gist
Feb 19, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,7 @@ sbt インストール http://www.scala-sbt.org/ Mac: MacPorts だとバージョンが古いので homebrew を使用 Windows: http://www.scala-sbt.org/download.html から msi をDL Linux: yum もしくは apt-get -
gakuzzzz revised this gist
Feb 19, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -133,7 +133,7 @@ IntelliJ IDEA の SBT Plugin に sbt のパスを設定 1. メニューの「File」 -> 「Settings」を選択 2. 「SBT」 -> 「SBT Launcher JAR file」でインストール済みの sbt-launch.jar を指定 3. 「OK」を押下 *********************************************************** -
gakuzzzz revised this gist
Feb 19, 2012 . 1 changed file with 77 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Scala 開発環境構築手順 * JDKがinstall済みであること * java コマンドに環境変数Pathが通っていること *********************************************************** sbt インストール *********************************************************** @@ -21,6 +22,7 @@ Linux: yum もしくは apt-get インストール後、環境変数Pathに通すこと *********************************************************** IntelliJ IDEA インストール *********************************************************** @@ -29,6 +31,7 @@ http://www.jetbrains.com/idea/download/index.html 公式からインストーラをDLして実行 *********************************************************** IntelliJ IDEA に Scala Plugin および SBT Plugin をインストール *********************************************************** @@ -39,7 +42,8 @@ IntelliJ IDEA に Scala Plugin および SBT Plugin をインストール 3. 右上の検索フォームに「scala」と入力して検索 4. 「Scala」と「SBT」を選択し、コンテキストメニューから「Download and Install」を実行 5. 「OK」を押下のち再び「OK」を押下 6. 再起動を要求されるので再起動 *********************************************************** IntelliJ IDEA に JavaSDKのパスを指定 @@ -50,6 +54,7 @@ IntelliJ IDEA に JavaSDKのパスを指定 3. インストール済みJDKのパスを選択 4. 「OK」を押下 *********************************************************** conscript インストール *********************************************************** @@ -58,24 +63,68 @@ Windows ======================================= 1. https://github.com/n8han/conscript から conscript runnable jar を DL 2. ``java -jar`` コマンドで DL した jar を実行 3. splash screen 下部のメッセージ部に 「Installed: ${インストールされたPath}」が表示されるまで待つ 4. splash screen を閉じる 5. ${インストールされたPath} に環境変数Pathを通す Linux, Mac ======================================= 1. Terminal で ``curl https://raw.github.com/n8han/conscript/master/setup.sh | sh`` を実行 :: 2. $HOME/bin に環境変数Pathを通す *********************************************************** giter8 インストール *********************************************************** 1. Terminal(コマンドプロンプト)で ``cs n8han/giter8`` を実行 :: *********************************************************** giter8 にてプロジェクトテンプレートを導入 *********************************************************** 1. Terminal(コマンドプロンプト)でプロジェクトフォルダを作成したいパスに移動 2. g8コマンドで任意のテンプレートを取得 (handsonでは chrislewis/basic-project を使用) :: g8 chrislewis/basic-project 3. テンプレートに設定されているパラメータを入力 *********************************************************** プロジェクトの plugins.sbt に sbt-idea plugin の設定を記述 *********************************************************** 1. プロジェクトフォルダ/project/plugins.sbt というファイルを作成し、下記の内容を記述 :: resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/" addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.0.0") 2. **(Optional)** プロジェクトフォルダ/.gitignore というファイルを作成し、下記の内容を記述 :: .DS_Store Thumnail.db target/ lib_managed/ src_managed/ project/boot/ 3. Terminal(コマンドプロンプト)でカレントディレクトリをプロジェクトフォルダに移動 4. ``sbt`` 実行 5. ``gen-idea`` 実行 *********************************************************** IntelliJ IDEA でプロジェクトを開く *********************************************************** 1. メニューの「File」 -> 「Open Project...」を選択 2. プロジェクトフォルダを選択 *********************************************************** @@ -84,5 +133,26 @@ IntelliJ IDEA の SBT Plugin に sbt のパスを設定 1. メニューの「File」 -> 「Settings」を選択 2. 「SBT」 -> 「SBT Launcher JAR file」でインストール済みの sbt-launch.jar を指定 4. 「OK」を押下 *********************************************************** IntelliJ IDEA に Scala Compiler を指定 *********************************************************** 1. メニューの「File」-> 「Settings」を選択 2. 「Project Settings」 -> 「Compiler」 -> 「Scala Compiler」を選択 3. 「Compiler library」に ``sscala-2.9.1`` を指定 4. 「OK」を押下 *********************************************************** sbt-idea プラグインの不具合?対応 *********************************************************** 1. メニューの「File」 -> 「Project Structure...」を選択 2. 「Project Settings」 -> 「Modules」 -> 「default-XXXXXX」 -> 「Dependencies」タブ選択 3. ``org.scala-lang_scala-library_2.9.1`` の Scope が 「Test」 になっているのを 「Compile」 に変更 4. 「OK」を押下 -
gakuzzzz revised this gist
Feb 19, 2012 . 1 changed file with 46 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,13 @@ ################################################################################ Scala 開発環境構築手順 ################################################################################ *********************************************************** 前提条件 *********************************************************** * JDKがinstall済みであること * java コマンドに環境変数Pathが通っていること *********************************************************** sbt インストール @@ -32,18 +33,56 @@ http://www.jetbrains.com/idea/download/index.html IntelliJ IDEA に Scala Plugin および SBT Plugin をインストール *********************************************************** 1. メニューの「File」 -> 「Settings」を選択 2. 「Plugins」 -> 「Browse Repositories」ボタンを押下して 「Browse Repositories」ダイアログを開く 3. 右上の検索フォームに「scala」と入力して検索 4. 「Scala」と「SBT」を選択し、コンテキストメニューから「Download and Install」を実行 5. 「OK」を押下のち再び「OK」を押下 5. 再起動を要求されるので再起動 *********************************************************** IntelliJ IDEA に JavaSDKのパスを指定 *********************************************************** 1. メニューの「File」->「Other Settings」-> 「Template Project Structure...」 を選択 2. 「Project Settings」 -> 「Project」 -> 「Project SDK」 の 「New」ボタンを押下 3. インストール済みJDKのパスを選択 4. 「OK」を押下 *********************************************************** conscript インストール *********************************************************** Windows ======================================= 1. https://github.com/n8han/conscript から conscript runnable jar を DL 2. java -jar コマンドで DL した jar を実行 3. splash screen 下部のメッセージ部に 「Installed: ${インストールされたPath}」が表示されるまで待つ 4. ${インストールされたPath} に環境変数Pathを通す Linux, Mac ======================================= 1. Terminal で下記を実行:: curl https://raw.github.com/n8han/conscript/master/setup.sh | sh 2. $HOME/bin に環境変数Pathを通す *********************************************************** giter8 インストール *********************************************************** 1. Terminal(コマンドプロンプト)で下記を実行:: cs n8han/giter8 *********************************************************** IntelliJ IDEA の SBT Plugin に sbt のパスを設定 *********************************************************** 1. メニューの「File」 -> 「Settings」を選択 2. 「SBT」 -> 「SBT Launcher JAR file」でインストール済みの sbt-launch.jar を指定 -
gakuzzzz revised this gist
Feb 19, 2012 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -32,18 +32,18 @@ http://www.jetbrains.com/idea/download/index.html IntelliJ IDEA に Scala Plugin および SBT Plugin をインストール *********************************************************** 1. メニューの「File」 -> 「Settings」 -> を選択 2. 「Plugins」->「Browse Repositories」ボタンを押下 3. 「Browse Repositories」ダイアログが開くので、その中の Scala Plugin と sbt Plugin を選択、 4. コンテキストメニューから「Download and Install」を実行 5. 再起動を要求されるので再起動 *********************************************************** IntelliJ IDEA の SBT Plugin に sbt のパスを設定 *********************************************************** 1. メニューの「File」 -> 「Settings」 -> を選択 2. 「SBT」->「SBT Launcher JAR file」でインストール済みの sbt-launch.jar を指定 -
gakuzzzz revised this gist
Feb 19, 2012 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -32,11 +32,11 @@ http://www.jetbrains.com/idea/download/index.html IntelliJ IDEA に Scala Plugin および SBT Plugin をインストール *********************************************************** (1) メニューの「File」 -> 「Settings」 -> を選択 (1) 「Plugins」->「Browse Repositories」ボタンを押下 (1) 「Browse Repositories」ダイアログが開くので、その中の Scala Plugin と sbt Plugin を選択、 (1) コンテキストメニューから「Download and Install」を実行 (1) 再起動を要求されるので再起動 *********************************************************** -
gakuzzzz revised this gist
Feb 19, 2012 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -32,18 +32,18 @@ http://www.jetbrains.com/idea/download/index.html IntelliJ IDEA に Scala Plugin および SBT Plugin をインストール *********************************************************** 1) メニューの「File」 -> 「Settings」 -> を選択 1) 「Plugins」->「Browse Repositories」ボタンを押下 1) 「Browse Repositories」ダイアログが開くので、その中の Scala Plugin と sbt Plugin を選択、 1) コンテキストメニューから「Download and Install」を実行 1) 再起動を要求されるので再起動 *********************************************************** IntelliJ IDEA の SBT Plugin に sbt のパスを設定 *********************************************************** 1) メニューの「File」 -> 「Settings」 -> を選択 1) 「SBT」->「SBT Launcher JAR file」でインストール済みの sbt-launch.jar を指定 -
gakuzzzz created this gist
Feb 19, 2012 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,49 @@ ################################################################################ 環境構築手順 ################################################################################ *********************************************************** 前提条件 *********************************************************** * JDKがinstall済みであること *********************************************************** sbt インストール *********************************************************** http://www.scala-sbt.org/ Mac: Macport だとバージョンが古いので homebrew を使用 Windows: http://www.scala-sbt.org/download.html から msi をDL Linux: yum もしくは apt-get インストール後、環境変数Pathに通すこと *********************************************************** IntelliJ IDEA インストール *********************************************************** http://www.jetbrains.com/idea/download/index.html 公式からインストーラをDLして実行 *********************************************************** IntelliJ IDEA に Scala Plugin および SBT Plugin をインストール *********************************************************** 1. メニューの「File」 -> 「Settings」 -> を選択 1. 「Plugins」->「Browse Repositories」ボタンを押下 1. 「Browse Repositories」ダイアログが開くので、その中の Scala Plugin と sbt Plugin を選択、 1. コンテキストメニューから「Download and Install」を実行 1. 再起動を要求されるので再起動 *********************************************************** IntelliJ IDEA の SBT Plugin に sbt のパスを設定 *********************************************************** 1. メニューの「File」 -> 「Settings」 -> を選択 1. 「SBT」->「SBT Launcher JAR file」でインストール済みの sbt-launch.jar を指定