<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>仙人の心得 &#187; wget</title>
	<atom:link href="http://blog.mktime.com/archive/tag/wget/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mktime.com</link>
	<description>修行の日々を淡々と</description>
	<lastBuildDate>Thu, 05 May 2011 07:39:25 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>mac:Homebrewでパッケージ管理</title>
		<link>http://blog.mktime.com/archive/353.html</link>
		<comments>http://blog.mktime.com/archive/353.html#comments</comments>
		<pubDate>Mon, 02 May 2011 13:17:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分類]]></category>
		<category><![CDATA[Homebrew]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://blog.mktime.com/?p=353</guid>
		<description><![CDATA[macのパッケージ管理ソフトといえばmacPortsやFinkが有名ですが、ニュータイプはHomebrewを使うらしいので、私も乗り換えてみました。 HomeBrewのインストール方法 1.以下のコマンドを実行 ruby -e "$(curl -fsSLk https://gist.github.com/raw/323731/install_homebrew.rb)" 2.Xcodeをインストールする 1、2の順番がおすすめとのことだったが、私は既にXcodeをインストールしていたので、手順1だけ実行した。 ruby -e "$(curl -fsSLk https://gist.github.com/raw/323731/install_homebrew.rb)" ==> This script will install: /usr/local/bin/brew /usr/local/Library/Formula/... /usr/local/Library/Homebrew/... ==> The following directories will be made group writable: /usr/local/. /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig ==> The following directories will have their group set to staff: /usr/local/. /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig Press enter to continue [...]]]></description>
			<content:encoded><![CDATA[<p>macのパッケージ管理ソフトといえばmacPortsやFinkが有名ですが、ニュータイプはHomebrewを使うらしいので、私も乗り換えてみました。</p>
<h4>HomeBrewのインストール方法</h4>
<p>1.以下のコマンドを実行</p>
<pre>
ruby -e "$(curl -fsSLk https://gist.github.com/raw/323731/install_homebrew.rb)"
</pre>
<p>2.Xcodeをインストールする</p>
<p>1、2の順番がおすすめとのことだったが、私は既にXcodeをインストールしていたので、手順1だけ実行した。</p>
<pre>
ruby -e "$(curl -fsSLk https://gist.github.com/raw/323731/install_homebrew.rb)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/...
/usr/local/Library/Homebrew/...
==> The following directories will be made group writable:
/usr/local/.
/usr/local/include
/usr/local/lib
/usr/local/lib/pkgconfig
==> The following directories will have their group set to staff:
/usr/local/.
/usr/local/include
/usr/local/lib
/usr/local/lib/pkgconfig

Press enter to continue ★ここでEnterを押す
==> /usr/bin/sudo /bin/chmod g+w /usr/local/. /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig
Password:
==> /usr/bin/sudo /usr/bin/chgrp staff /usr/local/. /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig
==> Downloading and Installing Homebrew...
==> Installation successful!
</pre>
<p>で、問題なく入ったようなので、Homebrewを使ってwgetをインストールしてみる。</p>
<pre>
$ brew install wget
Warning: It appears you have Macports or Fink installed
Software installed with other package managers causes known problems for
Homebrew. If formula fail to build uninstall Macports/Fink and reinstall any
affected formula.
==> Downloading http://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2
######################################################################## 100.0%
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file src/openssl.c
==> ./configure --disable-debug --prefix=/usr/local/Cellar/wget/1.12 --disable-i
==> make install
/usr/local/Cellar/wget/1.12: 9 files, 760K, built in 21 seconds
</pre>
<p>wgetはちゃんと入ったが警告が気になるのでmacPortsをアンインストールすることにした。</p>
<h4>macportsのアンインストール方法</h4>
<p>まず、macportsで何のパッケージをインストールしているか確認する。</p>
<pre>
port installed
</pre>
<p>ここでリストされた内容を全てアンインストールする。<br />
Homebrewで入れ直す必要もあるだろうから、それまでリストは保存しておく。<br />
またデーモンで動作しているパッケージがあったら、デーモンを停止すること。</p>
<p>ディレクトリを削除する。</p>
<pre>
sudo port -f uninstall installed

sudo rm -rf /opt/local \
/Applications/MacPorts \
/Applications/DarwinPorts \
/Library/Tcl/macports1.0 \
/Library/Tcl/darwinports1.0 \
/Library/LaunchDaemons/org.macports.* \
/Library/StartupItems/DarwinPortsStartup \
/Library/Receipts/MacPorts*.pkg \
/Library/Receipts/DarwinPorts*.pkg
</pre>
<p>確認のためもう一度wgetを入れてみると今度は警告なしでインストールできた。</p>
<pre>
brew remove wget  ★パッケージを削除するコマンドremove
Uninstalling /usr/local/Cellar/wget/1.12...
brew install wget  ★再インストール
==> Downloading http://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2
File already downloaded and cached to /Users/nakau/Library/Caches/Homebrew
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file src/openssl.c
==> ./configure --disable-debug --prefix=/usr/local/Cellar/wget/1.12 --disable-i
==> make install
/usr/local/Cellar/wget/1.12: 9 files, 760K, built in 17 seconds
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.mktime.com/archive/353.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>linux：proxy接続環境で設定すること</title>
		<link>http://blog.mktime.com/archive/20.html</link>
		<comments>http://blog.mktime.com/archive/20.html#comments</comments>
		<pubDate>Thu, 24 Jul 2008 23:04:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[pear]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[wget]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://blog.mktime.com/?p=17</guid>
		<description><![CDATA[よく設定方法を忘れるので、とりあえずこれだけは最初にセットするようにしよう。 環境変数の設定 $HOME/.bashrcに記述 export http_proxy=http://プロクシーサーバ名:ポート番号/ export https_proxy=http://プロクシーサーバ名:ポート番号/ export ftp_proxy=http://プロクシーサーバ名:ポート番号/ 記述したら反映する。 source .bashrc yumのproxy設定 /etc/yum.confの[main]セクションにに下記の１行を追加。 [main] ・・・いろいろ省略・・・ proxy=http://プロクシーサーバ名:ポート番号/ wgetのproxy設定 $HOME/.wgetrcに記述する。 export http_proxy=http://プロクシーサーバ名:ポート番号/ pearのproxy設定 pearコマンドでproxyサーバ＆ポートを指定する。 pear config-set http_proxy プロクシーサーバ名:ポート番号 うまく行かないときにチェックすること 環境変数がセットされているか…setコマンド ネットワーク設定は正しいか。 DHCPならこんな感じ。 /etc/sysconfig/network-scripts/ifcfg-eth0 TYPE=Ethernet DEVICE=eth0 ONBOOT=yes #NETMASK=255.255.255.0 #IPADDR=192.168.1.8 BOOTPROTO='dhcp']]></description>
			<content:encoded><![CDATA[<p>よく設定方法を忘れるので、とりあえずこれだけは最初にセットするようにしよう。</p>
<h3>環境変数の設定</h3>
<p>$HOME/.bashrcに記述</p>
<pre class="file">
export http_proxy=http://プロクシーサーバ名:ポート番号/
export https_proxy=http://プロクシーサーバ名:ポート番号/
export ftp_proxy=http://プロクシーサーバ名:ポート番号/
</pre>
<p>記述したら反映する。</p>
<pre class="console">
source .bashrc
</pre>
<h3>yumのproxy設定</h3>
<p>/etc/yum.confの[main]セクションにに下記の１行を追加。</p>
<pre class="file">
[main]
 ・・・いろいろ省略・・・
proxy=http://プロクシーサーバ名:ポート番号/
</pre>
<h3>wgetのproxy設定</h3>
<p>$HOME/.wgetrcに記述する。</p>
<pre class="file">
export http_proxy=http://プロクシーサーバ名:ポート番号/
</pre>
<h3>pearのproxy設定</h3>
<p>pearコマンドでproxyサーバ＆ポートを指定する。</p>
<pre class="console">
pear config-set http_proxy プロクシーサーバ名:ポート番号
</pre>
<h3>うまく行かないときにチェックすること</h3>
<p>環境変数がセットされているか…setコマンド<br />
ネットワーク設定は正しいか。<br />
DHCPならこんな感じ。</p>
<div class="caption">/etc/sysconfig/network-scripts/ifcfg-eth0</div>
<pre class="file">
TYPE=Ethernet
DEVICE=eth0
ONBOOT=yes
#NETMASK=255.255.255.0
#IPADDR=192.168.1.8
BOOTPROTO='dhcp'
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.mktime.com/archive/20.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

