読者です 読者をやめる 読者になる 読者になる

Mac Ports で、scalaをいれる

めも、めも。

MacBook:~ g$ port search scala
cassandra @0.7.4 (databases)
    A highly scalable, eventually consistent, distributed, structured key-value store.

dspam @3.9.0 (mail, net)
    Scalable, open-source statistical anti-spam filter

kumofs @0.4.12 (net)
    A scalable and highly available distributed key-value store.

mkpwd @0.7 (sysutils)
    mkpwd is a scalable password generator

omake @0.9.8.5-3 (devel)
    OMake is a build system designed for scalability and portability

p5-readonly @1.03 (perl)
    Facility for creating read-only scalars, arrays, hashes.

p5-readonly-xs @1.05 (perl)
    Readonly::XS is a companion module for Readonly. It speeds up read-only scalar variables.

p5-scalar-list-utils @1.23 (perl)
    Perl subroutines that would be nice to have in the perl core

p5-set-scalar @1.25 (perl)
    Basic set operations

py25-cometd @0.2 (python)
    Cometd is a scalable HTTP-based event routing bus that uses a push technology pattern known as Comet.

py26-tornado @1.2.1 (python, www)
    Scalable, non-blocking web server and related tools

py27-tornado @1.2.1 (python, www)
    Scalable, non-blocking web server and related tools

sbt @0.7.4 (devel, java)
    Simple build tool (sbt) is designed to simplify building Scala projects.

scala @2.7.7 (lang, java)
    The Scala Programming Language

scala-devel @2.8.0.Beta1-prerelease (lang, java)
    The Scala Programming Language

scala-migrations @1.0.1 (java)
    Database migrations written in Scala

scala27 @2.7.7 (lang, java)
    The Scala Programming Language

scala28 @2.8.1 (lang, java)
    The Scala Programming Language

scala29 @0.0.2.9.0.RC1 (lang, java)
    The Scala Programming Language

scala_select @0.1 (sysutils)
    Switch the default scala compiler

scalaz @2.3 (java)
    General utility library that extends the Scala core API

slepc @3.1-p6 (math, science)
    Scalable Library for Eigenvalue Problem Computations

splat @1.0 (net)
    Splat: Scalable Periodic LDAP Attribute Transmogrifier

Found 23 ports.

MacBook:~ g$ sudo port install scala28
--->  Computing dependencies for scala28
--->  Dependencies to be installed: scala_select
--->  Fetching scala_select
--->  Verifying checksum(s) for scala_select
--->  Extracting scala_select
--->  Configuring scala_select
--->  Building scala_select
--->  Staging scala_select into destroot
--->  Installing scala_select @0.1_1
--->  Activating scala_select @0.1_1
--->  Cleaning scala_select
--->  Fetching scala28
--->  Verifying checksum(s) for scala28
--->  Extracting scala28
--->  Configuring scala28
--->  Building scala28
--->  Staging scala28 into destroot
--->  Installing scala28 @2.8.1_1
--->  Activating scala28 @2.8.1_1
--->  Cleaning scala28
MacBook:~ g$ scala28
-bash: scala28: command not found
MacBook:~ g$ ls /opt/local/
bin/     etc/     include/ lib/     libexec/ man/     sbin/    share/   var/     
MacBook:~ g$ ls /opt/local/bin/
daemondo        port            portindex       sbaz-2.8        scala-2.8       scalac-2.8      scalap-2.8      
fsc-2.8         portf           portmirror      sbaz-setup-2.8  scala_select    scaladoc-2.8    
MacBook:~ g$ scala-2.8
Welcome to Scala version 2.8.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_20).
Type in expressions to have them evaluated.
Type :help for more information.

scala> exit
MacBook:~ g$ scala-2.8 
Welcome to Scala version 2.8.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_20).
Type in expressions to have them evaluated.
Type :help for more information.

scala> print ("hoge")
hoge
scala> exit
MacBook:~ g$ sudo mkdir /usr/local/bin
MacBook:~ g$ sudo ln -s /opt/local/bin/scala-2.8 /usr/local/bin/scala
MacBook:~ g$ sudo ln -s /opt/local/bin/scalac-2.8 /usr/local/bin/scalac
MacBook:~ g$ sudo ln -s /opt/local/bin/scaladoc-2.8 /usr/local/bin/scaladoc
MacBook:~ g$ sudo ln -s /opt/local/bin/scalap-2.8 /usr/local/bin/scalap
MacBook:~ g$ sudo ln -s /opt/local/bin/fsc-2.8 /usr/local/bin/fsc
MacBook:~ g$ sudo ln -s /opt/local/bin/sbaz-2.8 /usr/local/bin/sbaz
MacBook:~ g$ sudo ln -s /opt/local/bin/sbaz-setup-2.8 /usr/local/bin/sbaz-setup

MacBook:~ g$ scala
Welcome to Scala version 2.8.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_20).
Type in expressions to have them evaluated.
Type :help for more information.

scala> exit
MacBook:~ g$ which scala
/usr/local/bin/scala