macportsでtomcat6をインストール
参考にしたのは,講義で配布された設定資料(ただし,Linux環境用)
とりあえず,落とさないと話にならない気がしたのでターミナルより,
TeensMac:~ teens$ sudo port install tomcat6
-
-
- > Fetching hamcrest-core
- > Attempting to fetch hamcrest-1.1.tgz from http://hamcrest.googlecode.com/files/
- > Verifying checksum(s) for hamcrest-core
- > Extracting hamcrest-core
- > Configuring hamcrest-core
- > Building hamcrest-core
- > Staging hamcrest-core into destroot
- > Installing hamcrest-core @1.1_2
- > Activating hamcrest-core @1.1_2
- > Cleaning hamcrest-core
- > Fetching junit
- > Attempting to fetch junit4.6.zip from http://voxel.dl.sourceforge.net/junit
- > Verifying checksum(s) for junit
- > Extracting junit
- > Configuring junit
- > Building junit
- > Staging junit into destroot
- > Installing junit @4.6_0
- > Activating junit @4.6_0
- > Cleaning junit
- > Fetching commons-collections
- > Attempting to fetch commons-collections-3.2.1-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/commons/collections/source/
- > Verifying checksum(s) for commons-collections
- > Extracting commons-collections
- > Configuring commons-collections
- > Building commons-collections
- > Staging commons-collections into destroot
- > Installing commons-collections @3.2.1_0
- > Activating commons-collections @3.2.1_0
- > Cleaning commons-collections
- > Fetching jakarta-log4j
- > Attempting to fetch apache-log4j-1.2.15.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/logging/log4j/1.2.15
- > Verifying checksum(s) for jakarta-log4j
- > Extracting jakarta-log4j
- > Configuring jakarta-log4j
- > Building jakarta-log4j
- > Staging jakarta-log4j into destroot
- > Installing jakarta-log4j @1.2.15_0
- > Activating jakarta-log4j @1.2.15_0
- > Cleaning jakarta-log4j
- > Fetching servlet23-api
- > Attempting to fetch servlet2.3-jsp1.2-tc4.x.tar.gz from http://distfiles.macports.org/servlet23-api
- > Verifying checksum(s) for servlet23-api
- > Extracting servlet23-api
- > Configuring servlet23-api
- > Building servlet23-api
- > Staging servlet23-api into destroot
- > Installing servlet23-api @1_0
- > Activating servlet23-api @1_0
- > Cleaning servlet23-api
- > Fetching commons-logging
- > Attempting to fetch commons-logging-1.1.1-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/commons/logging/source/
- > Verifying checksum(s) for commons-logging
- > Extracting commons-logging
- > Configuring commons-logging
- > Building commons-logging
- > Staging commons-logging into destroot
- > Installing commons-logging @1.1.1_0
- > Activating commons-logging @1.1.1_0
- > Cleaning commons-logging
- > Fetching commons-beanutils
- > Attempting to fetch commons-beanutils-1.8.0-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/commons/beanutils/source/
- > Verifying checksum(s) for commons-beanutils
- > Extracting commons-beanutils
- > Configuring commons-beanutils
- > Building commons-beanutils
- > Staging commons-beanutils into destroot
- > Installing commons-beanutils @1.8.0_0
- > Activating commons-beanutils @1.8.0_0
- > Cleaning commons-beanutils
- > Fetching commons-daemon
- > Attempting to fetch daemon-1.0.1.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/commons/daemon/source/
- > Verifying checksum(s) for commons-daemon
- > Extracting commons-daemon
- > Applying patches to commons-daemon
- > Configuring commons-daemon
- > Building commons-daemon
- > Staging commons-daemon into destroot
- > Installing commons-daemon @1.0.1_0
- > Activating commons-daemon @1.0.1_0
- > Cleaning commons-daemon
- > Fetching commons-pool
- > Attempting to fetch commons-pool-1.4-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/commons/pool/source/
- > Verifying checksum(s) for commons-pool
- > Extracting commons-pool
- > Configuring commons-pool
- > Building commons-pool
- > Staging commons-pool into destroot
- > Installing commons-pool @1.4_0
- > Activating commons-pool @1.4_0
- > Cleaning commons-pool
- > Fetching commons-dbcp
- > Attempting to fetch commons-dbcp-1.2.2-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/commons/dbcp/source/
- > Verifying checksum(s) for commons-dbcp
- > Extracting commons-dbcp
- > Configuring commons-dbcp
- > Building commons-dbcp
- > Staging commons-dbcp into destroot
- > Installing commons-dbcp @1.2.2_0
- > Activating commons-dbcp @1.2.2_0
- > Cleaning commons-dbcp
- > Fetching commons-digester
- > Attempting to fetch commons-digester-1.8-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/commons/digester/source/
- > Verifying checksum(s) for commons-digester
- > Extracting commons-digester
- > Configuring commons-digester
- > Building commons-digester
- > Staging commons-digester into destroot
- > Installing commons-digester @1.8_0
- > Activating commons-digester @1.8_0
- > Cleaning commons-digester
- > Fetching servlet24-api
- > Attempting to fetch apache-tomcat-5.5.25-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/tomcat/tomcat-5/v5.5.25/src/
- > Attempting to fetch apache-tomcat-5.5.25-src.tar.gz from http://distfiles.macports.org/servlet24-api
- > Verifying checksum(s) for servlet24-api
- > Extracting servlet24-api
- > Configuring servlet24-api
- > Building servlet24-api
-
-
-
- > Staging servlet24-api into destroot
- > Installing servlet24-api @5.5.25_0
- > Activating servlet24-api @5.5.25_0
- > Cleaning servlet24-api
- > Fetching commons-el
- > Attempting to fetch commons-el-1.0-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/commons/el/source/
- > Verifying checksum(s) for commons-el
- > Extracting commons-el
- > Configuring commons-el
- > Building commons-el
- > Staging commons-el into destroot
- > Installing commons-el @1.0_1
- > Activating commons-el @1.0_1
- > Cleaning commons-el
- > Fetching commons-fileupload
- > Attempting to fetch commons-fileupload-1.2.1-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/commons/fileupload/source/
- > Verifying checksum(s) for commons-fileupload
- > Extracting commons-fileupload
- > Configuring commons-fileupload
- > Building commons-fileupload
- > Staging commons-fileupload into destroot
- > Installing commons-fileupload @1.2.1_0
- > Activating commons-fileupload @1.2.1_0
- > Cleaning commons-fileupload
- > Fetching commons-codec
- > Attempting to fetch commons-codec-1.3-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/commons/codec/source/
- > Verifying checksum(s) for commons-codec
- > Extracting commons-codec
- > Configuring commons-codec
- > Building commons-codec
- > Staging commons-codec into destroot
- > Installing commons-codec @1.3_1
- > Activating commons-codec @1.3_1
- > Cleaning commons-codec
- > Fetching commons-httpclient
- > Attempting to fetch commons-httpclient-3.1-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/httpcomponents/commons-httpclient/source/
- > Verifying checksum(s) for commons-httpclient
- > Extracting commons-httpclient
- > Configuring commons-httpclient
- > Building commons-httpclient
- > Staging commons-httpclient into destroot
- > Installing commons-httpclient @3.1_0
- > Activating commons-httpclient @3.1_0
- > Cleaning commons-httpclient
- > Fetching commons-io
- > Attempting to fetch commons-io-1.4-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/commons/io/source/
- > Verifying checksum(s) for commons-io
- > Extracting commons-io
- > Configuring commons-io
- > Building commons-io
- > Staging commons-io into destroot
- > Installing commons-io @1.4_0
- > Activating commons-io @1.4_0
- > Cleaning commons-io
- > Fetching commons-launcher
- > Attempting to fetch commons-launcher-1.1-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/commons/launcher/source/
- > Verifying checksum(s) for commons-launcher
- > Extracting commons-launcher
- > Configuring commons-launcher
- > Building commons-launcher
- > Staging commons-launcher into destroot
- > Installing commons-launcher @1.1_0
- > Activating commons-launcher @1.1_0
- > Cleaning commons-launcher
- > Fetching jakarta-regexp
- > Attempting to fetch jakarta-regexp-1.4.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/jakarta/regexp/source
- > Verifying checksum(s) for jakarta-regexp
- > Extracting jakarta-regexp
- > Configuring jakarta-regexp
- > Building jakarta-regexp
- > Staging jakarta-regexp into destroot
- > Installing jakarta-regexp @1.4_0
- > Activating jakarta-regexp @1.4_0
- > Cleaning jakarta-regexp
- > Fetching jakarta-bcel
- > Attempting to fetch bcel-5.1-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/jakarta/bcel/source/
- > Verifying checksum(s) for jakarta-bcel
- > Extracting jakarta-bcel
- > Applying patches to jakarta-bcel
- > Configuring jakarta-bcel
- > Building jakarta-bcel
- > Staging jakarta-bcel into destroot
- > Installing jakarta-bcel @5.1_1
- > Activating jakarta-bcel @5.1_1
- > Cleaning jakarta-bcel
- > Fetching mx4j
- > Attempting to fetch mx4j-3.0.1-src.tar.gz from http://voxel.dl.sourceforge.net/mx4j
- > Verifying checksum(s) for mx4j
- > Extracting mx4j
- > Configuring mx4j
- > Building mx4j
- > Staging mx4j into destroot
- > Installing mx4j @3.0.1_0
- > Activating mx4j @3.0.1_0
- > Cleaning mx4j
- > Fetching commons-modeler
- > Attempting to fetch commons-modeler-2.0.1-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/commons/modeler/source/
- > Verifying checksum(s) for commons-modeler
- > Extracting commons-modeler
- > Configuring commons-modeler
- > Building commons-modeler
- > Staging commons-modeler into destroot
- > Installing commons-modeler @2.0.1_0
- > Activating commons-modeler @2.0.1_0
- > Cleaning commons-modeler
- > Fetching xercesj
- > Attempting to fetch Xerces-J-src.2.9.1.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/xml/xerces-j/
- > Attempting to fetch Xerces-J-src.2.9.1.tar.gz from http://distfiles.macports.org/xercesj
- > Attempting to fetch Xerces-J-tools.2.9.1.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/xml/xerces-j/
- > Attempting to fetch Xerces-J-tools.2.9.1.tar.gz from http://distfiles.macports.org/xercesj
- > Verifying checksum(s) for xercesj
- > Extracting xercesj
- > Configuring xercesj
- > Building xercesj
- > Staging xercesj into destroot
- > Installing xercesj @2.9.1_0
- > Activating xercesj @2.9.1_0
- > Cleaning xercesj
- > Fetching xalanj
- > Attempting to fetch xalan-j_2_7_0-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/xml/xalan-j/source/
- > Verifying checksum(s) for xalanj
- > Extracting xalanj
- > Configuring xalanj
- > Building xalanj
- > Staging xalanj into destroot
- > Installing xalanj @2.7.0_1
- > Activating xalanj @2.7.0_1
- > Cleaning xalanj
- > Fetching jakarta-taglibs-standard-11
- > Attempting to fetch jakarta-taglibs-standard-1.1.2-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/jakarta/taglibs/standard/source/
- > Verifying checksum(s) for jakarta-taglibs-standard-11
- > Extracting jakarta-taglibs-standard-11
- > Configuring jakarta-taglibs-standard-11
- > Building jakarta-taglibs-standard-11
- > Staging jakarta-taglibs-standard-11 into destroot
- > Installing jakarta-taglibs-standard-11 @1.1.2_1
- > Activating jakarta-taglibs-standard-11 @1.1.2_1
- > Cleaning jakarta-taglibs-standard-11
- > Fetching dom4j
- > Attempting to fetch dom4j-1.6.1.tar.gz from http://distfiles.macports.org/dom4j
- > Verifying checksum(s) for dom4j
- > Extracting dom4j
- > Applying patches to dom4j
- > Configuring dom4j
- > Building dom4j
- > Staging dom4j into destroot
- > Installing dom4j @1.6.1_1
- > Activating dom4j @1.6.1_1
- > Cleaning dom4j
- > Fetching jdom
- > Attempting to fetch jdom-1.0.tar.gz from http://distfiles.macports.org/jdom
- > Verifying checksum(s) for jdom
- > Extracting jdom
- > Configuring jdom
- > Building jdom
- > Staging jdom into destroot
- > Installing jdom @1.0_0
- > Activating jdom @1.0_0
- > Cleaning jdom
- > Fetching xom
- > Attempting to fetch xom-1.0.tar.gz from http://distfiles.macports.org/xom
- > Verifying checksum(s) for xom
- > Extracting xom
- > Configuring xom
- > Building xom
- > Staging xom into destroot
- > Installing xom @1.0_0
- > Activating xom @1.0_0
- > Cleaning xom
- > Fetching jaxen
- > Attempting to fetch jaxen-1.1-beta-9-src.tar.gz from http://distfiles.macports.org/jaxen
- > Verifying checksum(s) for jaxen
- > Extracting jaxen
- > Configuring jaxen
- > Building jaxen
- > Staging jaxen into destroot
- > Installing jaxen @1.1-beta-9_0
- > Activating jaxen @1.1-beta-9_0
- > Cleaning jaxen
- > Fetching saxpath
- > Attempting to fetch saxpath-1.0.tar.gz from http://distfiles.macports.org/saxpath
- > Verifying checksum(s) for saxpath
- > Extracting saxpath
- > Configuring saxpath
- > Building saxpath
- > Staging saxpath into destroot
- > Installing saxpath @1.0_0
- > Activating saxpath @1.0_0
- > Cleaning saxpath
- > Fetching tomcat6
- > Attempting to fetch apache-tomcat-6.0.18-src.tar.gz from ftp://ftp.infoscience.co.jp/pub/net/apache/dist/tomcat/tomcat-6/v6.0.18/src/
- > Verifying checksum(s) for tomcat6
- > Extracting tomcat6
- > Applying patches to tomcat6
- > Configuring tomcat6
- > Building tomcat6
- > Staging tomcat6 into destroot
-
-
-
- > Creating launchd control script
-
-
-
- > Installing tomcat6 @6.0.18_0
-
-
-
- > Activating tomcat6 @6.0.18_0
- > Cleaning tomcat6
-
コメントがだらだら書いてあるが,俺は英語が読めないので,ググると,いろいろと設定をしなければならないらしい.
とりあえずCATALINA_HOMEを通そうかと思い,.profileを更新するも,echoで返ってこない.
どうも.bash_profileがある状態だと,.profileは読まれないらしい.知らなかった.
とりあえず,bashを使うつもりなので,.bash_profileを更新.
追記
macportsでやろうとしたが,パーミッションの設定で挫けたりしたので,一回アンインストールした.
そしてhttp://lab.sb-software.jp/?p=195を参考にして,素直にホームディレクトリ以下に
インストールした
正直なところ,Tomcatがよくわかってない状態で入れようとしたのがよくなかったのだと思いましたとさ.