install/OSX/old commentsgit-annexhttp://git-annex.branchable.com/install/OSX/old_comments/git-annexikiwiki2013-11-27T23:12:59Zcomment 1http://git-annex.branchable.com/install/OSX/old_comments/comment_1_0a1760bf0db1f1ba89bdb4c62032f631/cfm [schleptet.net]2013-11-27T22:47:37Z2011-08-30T14:31:36Z
<p>You can also use Homebrew instead of MacPorts. Homebrew's <code>haskell-platform</code> is up-to-date, too:</p>
<pre><code>brew install haskell-platform git ossp-uuid md5sha1sum coreutils pcre
ln -s /usr/local/include/pcre.h /usr/include/pcre.h
</code></pre>
<p>As of this writing, however, Homebrew's <code>md5sha1sum</code> has a broken mirror. I wound up getting that from MacPorts anyway.</p>
GHC 7http://git-annex.branchable.com/install/OSX/old_comments/comment_2_0327c64b15249596add635d26f4ce67f/Ethan2013-11-27T22:47:37Z2012-03-28T19:06:51Z
<p>The Haskell Platform installer for OSX uses GHC 7.0.4, which doesn't seem able to support the current version of git-annex.</p>
<p>Cabal throws a very cryptic error about not being able to use the proper base package.</p>
<p>I was able to install it by</p>
<ol>
<li>cloning the repo</li>
<li>merging the ghc7.0 branch</li>
<li>resolving merge conflicts in git-annex.cabal</li>
<li>cabal install git-annex.cabal</li>
</ol>
<p>(Note I also tried this with homebrew and had similar results)</p>
ghc 7.0http://git-annex.branchable.com/install/OSX/old_comments/comment_3_47c682a779812dda77601c24a619923c/joey2013-11-27T22:47:37Z2012-03-28T19:18:58Z
You did the right thing, although just checking out the ghc-7.0 branch will avoid merge conflicts. I am trying to keep it fairly close to up-to-date.
Problems with Base & Cryptohttp://git-annex.branchable.com/install/OSX/old_comments/comment_4_e6109a964064a2a799768a370e57801d/Reimund2013-11-27T22:47:37Z2012-04-25T22:56:18Z
<p>I got the following error message trying to install git-annex:</p>
<pre><code>cabal: cannot configure git-annex-3.20120418. It requires base >=4.5 && <5
For the dependency on base >=4.5 && <5 there are these packages: base-4.5.0.0.
However none of them are available.
base-4.5.0.0 was excluded because of the top level dependency base -any
</code></pre>
<p>These are the steps I performed to make it work</p>
<ol>
<li>Download <a href="http://www.haskell.org/ghc/download">Ghc 7.4</a>.</li>
<li>Run <code>sudo cabal install git-annex --bindir=$HOME/bin</code>.</li>
<li>Compilation of the Crypto-4.2.4 dependency failed since it's not updated to work with Ghc 7.4. You need to patch SHA2.hs (steps below).</li>
<li>Run <code>sudo cabal install git-annex --bindir=$HOME/bin</code> a second time.</li>
</ol>
<p>The steps I did to patch the SHA2.hs file in Crypto-4.2.4:</p>
<ol>
<li><code>cabal unpack crypto-4.2.4</code></li>
<li><code>cd Crypto-4.2.4</code></li>
<li><code>patch -p1 < crypto-4.2.4-ghc-7.4.patch</code></li>
<li><code>sudo cabal install</code>.</li>
</ol>
<p>PS: I used <a href="http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-haskell/crypto/files/crypto-4.2.4-ghc-7.4.patch?revision=1.1">this patchfile</a>.
Then I did the last step a third time.</p>
sha256http://git-annex.branchable.com/install/OSX/old_comments/comment_5_50777853f808d57b957f8ce9a0f84b3d/Damien2013-11-27T22:47:37Z2012-06-01T16:13:05Z
<p>If you're missing the <code>sha256sum</code> command with Homebrew, it's provided by <code>coreutils</code>. You have to change your <code>$PATH</code> before running <code>cabal install git-annex.cabal</code>:</p>
<pre><code>PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH"
</code></pre>
comment 6http://git-annex.branchable.com/install/OSX/old_comments/comment_6_18a8df794aa0ddd294dbf17d3d4c7fe2/joeyh.name2013-11-27T22:47:37Z2012-06-01T17:24:29Z
Last night I made it look in /opt/local/libexec/gnubin .. if there's another directory it could look in, let me know. I am reluctant to make it run the brew command directly.
comment 7http://git-annex.branchable.com/install/OSX/old_comments/comment_7_2ce7acab15403d3f993cec94ec7f3bc6/David2013-11-27T22:47:37Z2012-06-19T04:41:27Z
<p>$(brew --prefix) should, in most cases, be /usr/local. That's the recommended install location for homebrew.</p>
<p>I already had git installed and homebrew as my package manager - my install steps were as follows:</p>
<ol>
<li>brew install haskell-platform ossp-uuid md5sha1sum coreutils pcre</li>
<li>PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH" cabal install git-annex</li>
</ol>
Installation not working on OS X 10.6.8http://git-annex.branchable.com/install/OSX/old_comments/comment_8_a93ad4b67c5df4243268bcf32562f6be/Agustin2013-11-27T22:47:37Z2012-06-25T02:21:40Z
<p>I try installing with brew because I already had brew setup in my machine, but all run ok but when I try to run cabal install git-annex I got an error with the hinotify-0.3.2 library complaining about a header file.</p>
<p>Full trace:</p>
<pre><code>sudo cabal install git-annex
Resolving dependencies...
Configuring hinotify-0.3.2...
Building hinotify-0.3.2...
Preprocessing library hinotify-0.3.2...
INotify.hsc:35:25: error: sys/inotify.h: No such file or directory
INotify.hsc: In function ‘main’:
INotify.hsc:259: error: invalid use of undefined type ‘struct inotify_event’
INotify.hsc:260: error: invalid use of undefined type ‘struct inotify_event’
INotify.hsc:261: error: invalid use of undefined type ‘struct inotify_event’
INotify.hsc:262: error: invalid use of undefined type ‘struct inotify_event’
INotify.hsc:265: error: invalid use of undefined type ‘struct inotify_event’
INotify.hsc:266: error: invalid application of ‘sizeof’ to incomplete type ‘struct inotify_event’
compiling dist/build/System/INotify_hsc_make.c failed (exit code 1)
command was: /usr/bin/gcc -c dist/build/System/INotify_hsc_make.c -o dist/build/System/INotify_hsc_make.o -m64 -fno-stack-protector -m64 -D__GLASGOW_HASKELL__=704 -Ddarwin_BUILD_OS -Ddarwin_HOST_OS -Dx86_64_BUILD_ARCH -Dx86_64_HOST_ARCH -I/usr/local/Cellar/ghc/7.4.1/lib/ghc-7.4.1/directory-1.1.0.2/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/Cellar/ghc/7.4.1/lib/ghc-7.4.1/unix-2.5.1.0/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/Cellar/ghc/7.4.1/lib/ghc-7.4.1/old-time-1.1.0.0/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/Cellar/ghc/7.4.1/lib/ghc-7.4.1/bytestring-0.9.2.1/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/Cellar/ghc/7.4.1/lib/ghc-7.4.1/base-4.5.0.0/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/Cellar/ghc/7.4.1/lib/ghc-7.4.1/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/Cellar/ghc/7.4.1/lib/ghc-7.4.1/include/
cabal: Error: some packages failed to install:
git-annex-3.20120624 depends on hinotify-0.3.2 which failed to install.
hinotify-0.3.2 failed during the building phase. The exception was:
ExitFailure 1
</code></pre>
<p>Anyone has an idea how can I solve this.</p>
<p>Thanks for the time!</p>
<p>Agustin</p>
For the momenthttp://git-annex.branchable.com/install/OSX/old_comments/comment_9_ae3ed5345bc84f57e44251d2e6c39342/Agustin2013-11-27T22:47:37Z2012-06-25T02:51:10Z
<p>Hi Joey! I just comment that I could not install it but the issue is with the last version (the one you just release today, so no problem!! man on sunday?? you're awesome!!!) so I installed the previous one and no problem at all</p>
<p>Thanks for all the efford and if you need me to try os whatever, feel free to ask!</p>
<p>Thanks again</p>
<p>Agustin</p>
comment 10http://git-annex.branchable.com/install/OSX/old_comments/comment_10_798000aab19af2944b6e44dbc550c6fe/joeyh.name2013-11-27T22:47:37Z2012-06-25T15:38:44Z
<p>@Agustin you should be able to work around that with: cabal install git-annex --flags=-Inotify</p>
<p>I've fixed it properly for the next release, it should only be using that library on Linux.</p>
comment 11http://git-annex.branchable.com/install/OSX/old_comments/comment_11_707a1a27a15b2de8dfc8d1a30420ab4c/Agustin2013-11-27T22:47:37Z2012-06-27T08:54:52Z
<p>Hi @joey! Perfect!... I'll do that then!</p>
<p>Thanks for your time man!</p>
sha256 alternativehttp://git-annex.branchable.com/install/OSX/old_comments/comment_12_60d13f2c8e008af1041bea565a392c83/Damien2013-11-27T22:47:37Z2012-06-30T14:34:11Z
in reply to comment 6: On my Mac (10.7.4) there's <code>/usr/bin/shasum -a 256 <file></code> command that will produce the same output as <code>sha256sum <file></code>.
gnu commandshttp://git-annex.branchable.com/install/OSX/old_comments/comment_13_a6f48c87c2d6eabe379d6e10a6cac453/Damien2013-11-27T22:47:37Z2012-07-01T17:03:57Z
…and another approach to the same problem: apparently git-annex also relies on the GNU coreutils (for instance, when doing <code>git annex get .</code>, <code>cp</code> complains about <code>illegal option -- -</code>). I do have the GNU coreutils installed with Homebrew, but they are all prefixed with <code>g</code>. So maybe you should try <code>gsha256sum</code> and <code>gcp</code> before <code>sha256sum</code> and <code>cp</code>, that seems like a more general solution.
comment 14http://git-annex.branchable.com/install/OSX/old_comments/comment_14_6ef2ddb7b11ce6ad54578ae118ed346e/joeyh.name2013-11-27T22:47:37Z2012-07-04T12:43:54Z
@Damien, hmm, it should not be using any cp options, unless when it was built there was a cp in the path that supported some option like -p. Can you check with --debug what cp parameters it's trying to use?
comment 15http://git-annex.branchable.com/install/OSX/old_comments/comment_15_6fd1fad5b6d9f36620e5a0e99edd2f89/joeyh.name2013-11-27T22:47:37Z2012-07-04T13:14:00Z
<p>git-annex will now fall back to slower pure Haskell hashing code if <code>sha256sum</code>, etc programs are not in PATH. I'd still recommend installing the coreutils, as they're probably faster.</p>
<p>(The <code>shasum</code> command seems to come from a perl library, so I have not tried to make git-annex use that one.)</p>
Compiling git-annex on OSX (with 32 bit Haskell)http://git-annex.branchable.com/install/OSX/old_comments/comment_16_af6fe3540032cdf4400478de87771058/a-or-b [myopenid.com]2013-11-27T22:47:37Z2012-07-24T03:26:45Z
<p>I came across an issue when following the instructions here:
<a href="http://git-annex.branchable.com/install/OSX/">http://git-annex.branchable.com/install/OSX/</a></p>
<p>I'm compiling the 'assistant' branch (522f568450a005ae81b24f63bb37e75320b51219).</p>
<p>The pre-compiled version of Haskell for OSX recommends the 32 bit installer, however git-annex compiles</p>
<blockquote><p> Utility/libdiskfree.o Utility/libkqueue.o Utility/libmounts.o</p></blockquote>
<p>as 64 bit. The 'make' command fails on linking 32- and 64-bit code.</p>
<p>So... I made a small change to the Makefile</p>
<blockquote><p> CFLAGS=-Wall</p></blockquote>
<p>becomes</p>
<blockquote><p> CFLAGS=-Wall -m32</p></blockquote>
<p>I don't know if there is an easy way to programmatically check for this, or even if you'd want to spend time doing it, but it might help someone else out.</p>
<p><a href="https://gist.github.com/3167798">https://gist.github.com/3167798</a></p>
comment 17http://git-annex.branchable.com/install/OSX/old_comments/comment_3_fc092412e99cf4c5f095b0ef710bc4de/Jimmy2013-11-27T22:47:37Z2012-07-24T06:33:13Z
@a-or-b that issue is logged here <span class="createlink"><a href="http://git-annex.branchable.com/ikiwiki.cgi?do=create&from=install%2FOSX%2Fold_comments%2Fcomment_3_fc092412e99cf4c5f095b0ef710bc4de&page=bugs%2Fsubtle_build_issue_on_OSX_10.7_and_Haskell_Platform___40__if_you_have_the_32bit_version_installed__41__" rel="nofollow">?</a>subtle build issue on OSX 10.7 and Haskell Platform (if you have the 32bit version installed)</span>, you can use cabal to build and install git-annex and it will detect if its 32 or 64bit automatically.
comment 17http://git-annex.branchable.com/install/OSX/old_comments/comment_17_8d3a0596db67108041728b20f2790f31/joeyh.name2013-11-27T22:47:37Z2012-07-24T15:03:49Z
The instructions say to use cabal for a reason -- it's more likely to work. But I have made the Makefile detect the mismatched GHC and C compiler and force the C compiler to 32 bit.
Updated install instructions with homebrewhttp://git-annex.branchable.com/install/OSX/old_comments/comment_3_733147cebe501c60f2141b711f1d7f24/Markus2013-11-27T22:47:37Z2012-08-07T06:46:47Z
<p>To install git annex with homebrew simply do:</p>
<pre><code>brew update
brew install haskell-platform git ossp-uuid md5sha1sum coreutils pcre
cabal install git-annex
</code></pre>
<p>Then link the binary to your <code>PATH</code> e.g. with</p>
<pre><code>ln -s ~/.cabal/bin/git-annex* /usr/local/bin/
</code></pre>
installing via homebrewhttp://git-annex.branchable.com/install/OSX/old_comments/comment_4_d513e21512a9b207983d38abf348d00f/David2013-11-27T22:47:37Z2012-09-05T11:11:55Z
<p>I had to:</p>
<pre><code>cabal update
</code></pre>
<p>before:</p>
<pre><code>cabal install git-annex
</code></pre>
setup: standalone/macos/git-annex.app/Contents/Info.plist: does not existhttp://git-annex.branchable.com/install/OSX/old_comments/comment_2_7683740a98182de06cb329792e0c0a25/Douglas2013-11-27T22:47:37Z2012-10-06T14:46:55Z
<p>I tried installing with cabal and homebrew on Mountain Lion. After cabal install git-annex I get:</p>
<pre><code>Linking dist/build/git-annex/git-annex ...
Installing executable(s) in /Users/dfc/.cabal/bin
setup: standalone/macos/git-annex.app/Contents/Info.plist: does not exist
cabal: Error: some packages failed to install:
git-annex-3.20121001 failed during the final install step. The exception was:
ExitFailure 1
</code></pre>
<p>There is no directory named macos inside of standalone:</p>
<pre><code>jumbo:git-annex-3.20121001 dfc$ ls -l standalone/
total 112
-rw-r--r--+ 1 dfc staff 55614 Oct 6 10:40 licences.gz
drwxr-xr-x+ 6 dfc staff 204 Oct 6 10:40 linux
drwxr-xr-x+ 3 dfc staff 102 Oct 6 10:40 osx
</code></pre>
comment 3http://git-annex.branchable.com/install/OSX/old_comments/comment_3_b090f40fe5a32e00b472a5ab2b850b4a/joeyh.name2013-11-27T22:47:37Z2012-10-06T21:05:45Z
@Douglas, I've fixed that in git. FWIW, the program is installed before that point. Actually, I am leaning toward not having cabal install that plist file at all.
Have errorhttp://git-annex.branchable.com/install/OSX/old_comments/comment_4_d68c36432c7be3f4a76f4f0d7300bac9/Сергей2013-11-27T22:47:37Z2012-10-10T11:47:09Z
<p>[ 98 of 248] Compiling Utility.DiskFree ( Utility/DiskFree.hs, dist/build/git-annex/git-annex-tmp/Utility/DiskFree.o )
[ 99 of 248] Compiling Utility.Url ( Utility/Url.hs, dist/build/git-annex/git-annex-tmp/Utility/Url.o )</p>
<p>Utility/Url.hs:111:88:
Couldn't match expected type <code>Maybe URI' with actual type</code>URI'
In the second argument of <code>fromMaybe', namely
</code>(newURI <code>relativeTo</code> u)'
In the expression: fromMaybe newURI (newURI <code>relativeTo</code> u)
In an equation for <code>newURI_abs':
newURI_abs = fromMaybe newURI (newURI</code>relativeTo` u)
cabal: Error: some packages failed to install:
git-annex-3.20121009 failed during the building phase. The exception was:
ExitFailure 1</p>
comment 5http://git-annex.branchable.com/install/OSX/old_comments/comment_5_626a4b4bf302d4ae750174f860402f70/joeyh.name2013-11-27T22:47:37Z2012-10-10T15:34:23Z
@Сергей, I've fixeed that in git.
Recent install for OS Xhttp://git-annex.branchable.com/install/OSX/old_comments/comment_9_c6b1b31d16f2144ad08abd8c767b6ab9/chee2013-11-27T22:47:37Z2012-11-13T04:40:05Z
<p>if you are having trouble installing with <code>cabal install git-annex</code> at the moment, trouble of the XML kind, you'll need to do a couple things:</p>
<p><code>brew update</code>
<code>brew install libxml2</code>
<code>cabal update</code>
<code>cabal install libxml --extra-include-dirs=/usr/local/Cellar/libxml2/2.8.0/include/libxml2 --extra-lib-dirs=/usr/local/Cellar/libxml2/2.8.0/lib</code></p>
<p>well, then i hit a brick wall.</p>
<p>well.</p>
<p>I got it to work by manually symlinking from <code>../Cellar/libxml2/2.8.0/lib/</code>* into <code>/usr/local</code> and from <code>../../Cellar/libxml2/2.8.0/lib/</code> to <code>/usr/local/pkgconfig</code>, but i can't recommend it or claim to be too proud about it all.</p>
<p>OS X already has an old libxml knocking around so this might ruin everything for me.</p>
<p>let's find out !</p>
comment 10http://git-annex.branchable.com/install/OSX/old_comments/comment_10_4d15bfc4fc26e7249953bebfbb09e0aa/Charles2013-11-27T22:47:37Z2012-11-15T13:26:57Z
<p>Installing it with brew, I had to do the following steps before the final <code>cabal</code> command:</p>
<ul>
<li><code>cabal install c2hs</code></li>
<li>add <code>$HOME/.cabal/bin</code> to my <code>$PATH</code> (so that c2hs program can be found)</li>
</ul>
Mac OS X Maverick - symbol not foundhttp://git-annex.branchable.com/install/OSX/old_comments/comment_34_c9362141d15a2f68a75df9f8bfe29da0/Ralf2013-11-27T23:12:59Z2013-10-27T21:02:45Z
<p>Just to mention that the beta dated 24 Oct 2013 and Joey's autobuild of 27 Oct both don't start with the following error message for git-annex, git-annex-webapp under Mac OS X 10.9 Maverick with latest XCode installed:</p>
<pre><code>dyld: Symbol not found: _objc_debug_taggedpointer_mask
Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Expected in: /Applications/git-annex.app/Contents/MacOS/bundle/I
in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Trace/BPT trap: 5
</code></pre>
<p>Many thanks. Can I help?</p>
comment 35http://git-annex.branchable.com/install/OSX/old_comments/comment_35_8106196c3fef70652cb2106e2d5857db/joeyh.name2013-11-27T23:12:59Z2013-10-27T21:06:57Z
We do not yet have an autobuild for 10.9. You can build from source: <a href="http://git-annex.branchable.com/bugs/git_annex_doesn__39__t_work_in_Max_OS_X_10.9/#comment-8e8ee5e50506a6fde029d236f4809df8">http://git-annex.branchable.com/bugs/git_annex_doesn__39__t_work_in_Max_OS_X_10.9/#comment-8e8ee5e50506a6fde029d236f4809df8</a>