Executando Julia no MacOS X: Missing libc ++. 1.dy

0

Ao tentar executar o Julia 0.3.2 no MacOS X, recebo este:

dyld: Library not loaded: /usr/lib/libc++.1.dylib
  Referenced from: /Applications/Julia-0.3.2.app/Contents/Resources/julia/bin/julia
  Reason: image not found

Quando executo a Julia 0.2.1, funciona:

Hermione:~ emd$ exec '/Users/emd/Desktop/Julia-0.2.1.app/Contents/Resources/julia/bin/julia'
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _' |  |
  | | |_| | | | (_| |  |  Version 0.2.1 (2014-02-11 06:30 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-apple-darwin12.5.0

julia> 

Olhando para o julia binário para 0.3.2, recebo isto:

Hermione:bin emd$ otool -L julia
julia:
    @rpath/libjulia.dylib (compatibility version 0.0.0, current version 0.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 855.17.0)
    /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 59.0.0)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)

Mas o binário julia para 0.2.1 fornece isto:

Hermione:bin emd$ otool -L julia
julia:
    /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
    @rpath/libjulia.dylib (compatibility version 0.0.0, current version 0.0.0)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 744.19.0)
    /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 57.0.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)

O que está acontecendo?

    
por Mei 11.11.2014 / 21:57

1 resposta

0

Encontrei a resposta lendo o site mais de perto.

O problema é que /usr/lib/libc++.1.dylib não está presente no sistema MacOS X 10.6.8 - mas por quê? O MacOS X 10.6.8 usa /usr/lib/libstdc++.6.dylib .

Então, pensei - talvez seja nas versões mais recentes do MacOS X?

A página de download para Julia tem esse detalhe:

On Mac, a Julia-version.dmg file is provided, which contains Julia.app. Installation is the same as any other Mac software – copy the Julia.app to your hard-drive (anywhere) or run from the disk image. Julia supports all OS X 10.7 and later. If you use Snow Leopard (OSX 10.6), Julia 0.2.1 was the last release of Julia that supported it.

Assim, a diferença nas bibliotecas aponta para os requisitos mínimos para Julia: Julia 0.3.2 não é suportada no MacOS X 10.6.

    
por 11.11.2014 / 21:57

Tags