{"id":272,"date":"2008-12-24T08:13:20","date_gmt":"2008-12-24T15:13:20","guid":{"rendered":"http:\/\/www.evardsson.com\/blog\/?p=272"},"modified":"2011-07-17T11:35:18","modified_gmt":"2011-07-17T18:35:18","slug":"svn-on-os-x-usr_bin-or-usr_local_bin","status":"publish","type":"post","link":"https:\/\/www.evardsson.com\/blog\/2008\/12\/24\/svn-on-os-x-usr_bin-or-usr_local_bin\/","title":{"rendered":"SVN on OS X &#8211; \/usr\/bin or \/usr\/local\/bin"},"content":{"rendered":"<p>I recently installed the <a href=\"http:\/\/downloads.open.collab.net\/binaries.html\">openCollabNet OS X Universal binary for SVN 1.5.4<\/a> from <a href=\"http:\/\/subversion.tigris.org\/\">Tigris<\/a> and found something odd. I had installed the openCollabNet binary for 1.4.4 a while back, and don&#8217;t recall changing any install paths, but apparently something changed. After installing I ran svn &#8211;version and saw something that I shouldn&#8217;t have seen:<\/p>\n<blockquote>\n<pre>svn, version 1.4.4 (r25188)\r\ncompiled Sep 23 2007, 22:32:34\r\n\r\nCopyright (C) 2000-2006 CollabNet.\r\nSubversion is open source software, see http:\/\/subversion.tigris.org\/\r\nThis product includes software developed by CollabNet (http:\/\/www.Collab.Net\/).<\/pre>\n<\/blockquote>\n<p>Strange, I should have seen the new 1.5.4 there. So I did a bit of digging. Everything I saw about the openCollabNet binary said it installed in \/usr\/local\/bin, but when I ran which svn I saw \/usr\/bin\/svn. So I looked in \/usr\/bin and \/usr\/local\/bin. Sure enough, two installs in two different places. Not being one to do anything rash (like deleting svn from \/usr\/bin and then changing the path on all my tools that rely on it) I decided the best thing to do was fix it in a way that was reversible. So, I fired off a sudo ls (to get my password in scope in the shell) and then a simple<\/p>\n<pre>for i in `ls \/usr\/bin\/svn*`; do mv \/usr\/bin\/$i \/usr\/bin\/$i.old &amp;&amp; ln -sf \/usr\/local\/bin\/$i \/usr\/bin\/$i; done<\/pre>\n<p>Once I had fired off that command another call to svn &#8211;version revealed the fix:<\/p>\n<blockquote>\n<pre>svn, version 1.5.4 (r33841)\r\ncompiled Oct 27 2008, 11:19:10\r\n\r\nCopyright (C) 2000-2008 CollabNet.\r\nSubversion is open source software, see http:\/\/subversion.tigris.org\/\r\nThis product includes software developed by CollabNet (http:\/\/www.Collab.Net\/).<\/pre>\n<\/blockquote>\n<p>I am still a little confused as to how 1.4.4 ended up in \/usr\/bin while 1.5.4 went to \/usr\/local\/bin (where it is expected to go from the openCollabNet binary installer). I wondered, did I change the install path at some point in the install? Somehow I doubt it, as that is not a change I would be likely to make. Just another little mystery for the unsolved cases file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently installed the openCollabNet OS X Universal binary for SVN 1.5.4 from Tigris and found something odd. I had installed the openCollabNet binary for 1.4.4 a while back, and don&#8217;t recall changing any install &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[21,59],"tags":[80,196,83],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","category-os-x","category-subversion","tag-osx","tag-subversion","tag-svn"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pxT7i-4o","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.evardsson.com\/blog\/wp-json\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.evardsson.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.evardsson.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.evardsson.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.evardsson.com\/blog\/wp-json\/wp\/v2\/comments?post=272"}],"version-history":[{"count":4,"href":"https:\/\/www.evardsson.com\/blog\/wp-json\/wp\/v2\/posts\/272\/revisions"}],"predecessor-version":[{"id":463,"href":"https:\/\/www.evardsson.com\/blog\/wp-json\/wp\/v2\/posts\/272\/revisions\/463"}],"wp:attachment":[{"href":"https:\/\/www.evardsson.com\/blog\/wp-json\/wp\/v2\/media?parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.evardsson.com\/blog\/wp-json\/wp\/v2\/categories?post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.evardsson.com\/blog\/wp-json\/wp\/v2\/tags?post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}