homebrewでダウンロード時にエラー
homebrewを使ってtomcatをインストールしようとしたらエラーがでた。
$ brew install tomcat==> Downloading http://www.apache.org/dyn/closer.cgi?path=tomcat/tomcat-7/v7.0.1 ==> Best Mirror http://ftp.riken.jp/net/apache/tomcat/tomcat-7/v7.0.16/bin/apach curl: (22) The requested URL returned error: 404 Error: Failure while executing: /usr/bin/curl -f#LA Homebrew\ 0.8\ (Ruby\ 1.8.7-249;\ Mac\ OS\ X\ 10.7.2) http://ftp.riken.jp/net/apache/tomcat/tomcat-7/v7.0.16/bin/apache-tomcat-7.0.16.tar.gz -o /Users/juzow/Library/Caches/Homebrew/tomcat-7.0.16.tar.gz
ダウンロード先の指定はFormulaとやらの中にあるらしい
$ vi /usr/local/Library/Formula/tomcat.rb
require 'formula' class Tomcat < Formula #url 'http://www.apache.org/dyn/closer.cgi?path=tomcat/tomcat-7/v7.0.16/bin/apache-tomcat-7.0.16.tar.gz' url 'http://www.apache.org/dyn/closer.cgi?path=tomcat/tomcat-7/v7.0.25/bin/apache-tomcat-7.0.25.tar.gz' homepage 'http://tomcat.apache.org/' #md5 'e1ba4ab7864079c2a853562cebdd045a' md5 '2aa59d23555d641b20efad4aed86b693' skip_clean :all def install # Remove Windows scripts rm_rf Dir['bin/*.bat'] # Install files prefix.install %w{ NOTICE LICENSE RELEASE-NOTES RUNNING.txt } libexec.install Dir['*'] # Symlink binaries bin.mkpath ln_s "#{libexec}/bin/catalina.sh", bin+"catalina" end end
コメントアウトしたところがもともとあった記述
これであってるのかどうかわからないが、とにかくインストールはできた。
-
- 追記--