<?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>Windchest &#187; subversion</title>
	<atom:link href="http://blog.windchest.jp/tag/subversion/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.windchest.jp</link>
	<description>らいどんによるプログラミングメモ</description>
	<lastBuildDate>Thu, 12 Jan 2012 07:34:23 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Snow Leopardに最新版Subversionを入れる</title>
		<link>http://blog.windchest.jp/setting/231.html</link>
		<comments>http://blog.windchest.jp/setting/231.html#comments</comments>
		<pubDate>Sat, 26 Jun 2010 08:37:39 +0000</pubDate>
		<dc:creator>ryde</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[設定]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[NetBeans]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[開発ツール]]></category>

		<guid isPermaLink="false">http://blog.windchest.jp/?p=231</guid>
		<description><![CDATA[仕事でsubversionを使うことになりました。 Mercurialとgitは触りましたが（gitについてはこちら参照）、Subversionは久々です。 Snow Leopardには最初からインストールされているらし [...]]]></description>
			<content:encoded><![CDATA[<p>仕事でsubversionを使うことになりました。<br />
Mercurialとgitは触りましたが（<a title="Mac+NetBeansでGitライフを" href="http://blog.windchest.jp/setting/162.html" target="_self">gitについてはこちら参照</a>）、Subversionは久々です。<br />
Snow Leopardには最初からインストールされているらしいのですが・・・<br />
<span id="more-231"></span></p>
<h5>謎？のエラー</h5>
<p>とりあえずバージョンを確認してみます。<br />
<code><br />
$ svn --version<br />
svn: Mismatched RA version for 'neon': found 1.6.2, expected 1.6.5<br />
</code><br />
・・・？<br />
想定されたバージョンが違う？？？<br />
ぐぐってみると以下のサイトを見つけました。</p>
<ul>
<li><a title="COLLABNET" href="http://subversion.open.collab.net/ds/viewMessage.do?dsForumId=4&amp;viewType=browseAll&amp;dsMessageId=355372" target="_blank">COLLAVNET-ディスカッション-</a></li>
</ul>
<p>どうやら最新版を入れることで回避できる模様。</p>
<p>根本的な解決には至ってないですがとりあえずこの方法で行きます。</p>
<h5>ダウンロードとインストール</h5>
<p><a title="collabnet" href="http://www.open.collab.net/jp/downloads/community/" target="_blank">CollabNet</a>からOS Xのインストーラ付最新版subversionがDL出来ます。(ユーザ登録する必要あり)</p>
<p>画面にしたがってインストール。</p>
<p>最後に、<br />
<code><br />
Post-Installation Notes<br />
You have successfully installed the Subversion 1.6.12 universal binary for OS X Snow Leopard (10.6). Please remember to prepend /opt/subversion/bin to your PATH environment variable. This can be done a multitude of ways but an easy one is to add the following to the end of ~/.profile:<br />
</code></p>
<p><code><br />
export PATH=/opt/subversion/bin:$PATH<br />
</code></p>
<p><code><br />
If you plan on running an Apache-based Subversion server, you will also need to prepend the DYLD_LIBRARY_PATH variable in /usr/sbin/envvars with /opt/subversion/lib so that the Subversion libraries shipped with this binary are used instead of those supplied by the operating system. Here is an example snippet of what /usr/sbin/envvars might look like after making these changes:<br />
...<br />
DYLD_LIBRARY_PATH="/opt/subversion/lib:/usr/lib:$DYLD_LIBRARY_PATH"<br />
...<br />
</code><br />
と表示されるので、bash_profileなどに下記のパスを追加<br />
<code><br />
/opt/subversion/bin<br />
</code></p>
<p>インストールされたか確認。<br />
<code><br />
$ svn --version<br />
svn, version 1.6.12 (r955767)<br />
compiled Jun 23 2010, 12:01:54<br />
</code><br />
<code><br />
Copyright (C) 2000-2009 CollabNet.<br />
Subversion is open source software, see http://subversion.tigris.org/<br />
This product includes software developed by CollabNet (http://www.Collab.Net/).<br />
</code><br />
<code><br />
The following repository access (RA) modules are available:<br />
</code><br />
<code><br />
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.<br />
- handles 'http' scheme<br />
- handles 'https' scheme<br />
* ra_svn : Module for accessing a repository using the svn network protocol.<br />
- with Cyrus SASL authentication<br />
- handles 'svn' scheme<br />
* ra_local : Module for accessing a repository on local disk.<br />
- handles 'file' scheme<br />
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.<br />
- handles 'http' scheme<br />
- handles 'https' scheme<br />
</code><br />
無事インストールに成功しました。</p>
<p>Subversionのディレクトリを作成します。（この例ではホームフォルダにsvnを作成）<br />
<code><br />
$ svnadmin create svn<br />
</code></p>
<p>これでローカルから使う場合のSubversionの設定はひとまず終了。</p>
<h5>NetBeansから使ってみる</h5>
<p>Mac版NetBeans6.9での利用方法です。</p>
<p>環境設定＞その他＞バージョン管理＞Subversion<br />
で、<br />
「SVN実行可能ファイルのパス」に先程のディレクトリを指定します。<br />
<code><br />
/opt/subversion/bin<br />
</code></p>
<p>メニューの<br />
チーム&gt;subversion&gt;リポジトリにインポート<br />
を選択して先ほど作成したディレクトリを指定します。</p>
<p>次にプロジェクト名と同じリポジトリが表示されるので、適当なメッセージを入れて完了すればOK。<br />
<a href="http://blog.windchest.jp/wp-content/uploads/2010/06/623ae1280f4d100ba4f318c695c71009.png"><img class="alignnone size-medium wp-image-245" title="スクリーンショット" src="http://blog.windchest.jp/wp-content/uploads/2010/06/623ae1280f4d100ba4f318c695c71009-300x207.png" alt="スクリーンショット" width="300" height="207" /></a><br />
リポジトリの作成や初期コミットなども一括で行ってくれます。<br />
ひとまずこれでコミットが出来るようになりました。</p>
<p>しかし、このままではコミットメッセージに日本語を使用することが出来ませんので、下記のサイトを参考にして設定しました。(NetBeans6.9でも問題ありません)</p>
<p><a title="maedalog" href="http://maeda.farend.ne.jp/blog/2010/02/28/netbeans-mac-config/" target="_blank">maeda.log-MacのNetBeansで最初にする設定-</a></p>
<ul>
<li>~/.subversion/configの設定</li>
<li>/Applications/NetBeans/NetBeans 6.9.app/Contents/Resources/NetBeans/etc/netbeans.confの設定</li>
</ul>
<p>この二つのファイルに日本語を利用出来るように設定します。</p>
<p>ここまでやればこのように日本語でメッセージを入出力することが出来ます。<br />
<a href="http://blog.windchest.jp/wp-content/uploads/2010/06/773dfc293a5ede2176fe30ea2e9fdd59.png"><img class="alignnone size-medium wp-image-246" title="スクリーンショット" src="http://blog.windchest.jp/wp-content/uploads/2010/06/773dfc293a5ede2176fe30ea2e9fdd59-300x143.png" alt="スクリーンショット" width="300" height="143" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.windchest.jp/setting/231.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: blog.windchest.jp @ 2012-02-06 23:31:29 -->
