Yggdrasil
Yggdrasil copied to clipboard
FFMPEG Incompatible library version OSX
When trying to use FFMPEG.jl I get the following error:
julia> using FFMPEG
julia> FFMPEG.exe("-version")
dyld: Library not loaded: @rpath/libbz2.1.0.6.dylib
Referenced from: /Users/gerlacar/.julia/artifacts/c28cdc80b48b1077c8fc57d8e94e6eb9c1a4a776/bin/ffmpeg
Reason: Incompatible library version: ffmpeg requires version 1.0.0 or later, but libbz2.1.0.6.dylib provides version 0.0.0
ERROR: failed process: Process(`/Users/gerlacar/.julia/artifacts/c28cdc80b48b1077c8fc57d8e94e6eb9c1a4a776/bin/ffmpeg -version`, ProcessSignaled(6)) [0]
I am using the official v1.6.0 binary:
julia> versioninfo()
Julia Version 1.6.0
Commit f9720dc2eb (2021-03-24 12:55 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin19.6.0)
CPU: Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
Environment:
JULIA_EDITOR = code
In a slack discussion with @giordano and @staticfloat we checked the following:
./julia --startup-file=no
julia> using Libdl; filter!(lib -> occursin("bz2", lib), dllist())
1-element Vector{String}:
"/usr/lib/libbz2.1.0.dylib"
julia> using FFMPEG; FFMPEG.exe("--version")
dyld: Library not loaded: @rpath/libbz2.1.0.6.dylib
Referenced from: /Users/gerlacar/.julia/artifacts/c28cdc80b48b1077c8fc57d8e94e6eb9c1a4a776/bin/ffmpeg
Reason: Incompatible library version: ffmpeg requires version 1.0.0 or later, but libbz2.1.0.6.dylib provides version 0.0.0
ERROR: failed process: Process(`/Users/gerlacar/.julia/artifacts/c28cdc80b48b1077c8fc57d8e94e6eb9c1a4a776/bin/ffmpeg --version`, ProcessSignaled(6)) [0]
Stacktrace:...
julia> filter!(lib -> occursin("bz2", lib), dllist())
2-element Vector{String}:
"/usr/lib/libbz2.1.0.dylib"
"/Users/gerlacar/.julia/artifacts/9e6461415f744a3748a3157a0c3db6b138dbea87/lib/libbz2.1.0.6.dylib"
along with
./julia --startup-file=no
julia> using Libdl; println.(sort(dllist()));
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
/System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
/System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
/System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
/System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
/System/Library/Frameworks/Security.framework/Versions/A/Security
/System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
/System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
/System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS
/System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
/System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement
/System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji
/System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP
/System/Library/PrivateFrameworks/CoreServicesStore.framework/Versions/A/CoreServicesStore
/System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
/System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon
/System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData
/System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities
/System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
/System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libLLVM.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libamd.2.4.6.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libcamd.2.4.6.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libccolamd.2.9.6.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libcholmod.3.0.13.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libcolamd.2.9.6.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libcurl.4.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libgcc_s.1.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libgfortran.4.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libgmp.10.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.6.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libmbedcrypto.2.24.0.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libmbedtls.2.24.0.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libmbedx509.2.24.0.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libmpfr.6.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libnghttp2.14.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libopenblas64_.0.3.10.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libopenlibm.3.0.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libosxunwind.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libpcre2-8.0.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libquadmath.0.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libssh2.1.0.1.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libsuitesparse_wrapper.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libsuitesparseconfig.5.4.0.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/libz.1.2.11.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/julia/sys.dylib
/Users/gerlacar/Applications/Julia-1.6.app/Contents/Resources/julia/lib/libjulia.1.6.dylib
/usr/lib/libCRFSuite.dylib
/usr/lib/libChineseTokenizer.dylib
/usr/lib/libDiagnosticMessagesClient.dylib
/usr/lib/libSystem.B.dylib
/usr/lib/libThaiTokenizer.dylib
/usr/lib/libapple_nghttp2.dylib
/usr/lib/libarchive.2.dylib
/usr/lib/libauto.dylib
/usr/lib/libbsm.0.dylib
/usr/lib/libbz2.1.0.dylib
/usr/lib/libc++.1.dylib
/usr/lib/libc++abi.dylib
/usr/lib/libcharset.1.dylib
/usr/lib/libcmph.dylib
/usr/lib/libcompression.dylib
/usr/lib/libcoretls.dylib
/usr/lib/libcoretls_cfhelpers.dylib
/usr/lib/libenergytrace.dylib
/usr/lib/libfakelink.dylib
/usr/lib/libgermantok.dylib
/usr/lib/libiconv.2.dylib
/usr/lib/libicucore.A.dylib
/usr/lib/liblangid.dylib
/usr/lib/liblzma.5.dylib
/usr/lib/libmecab.dylib
/usr/lib/libmecabra.dylib
/usr/lib/libnetwork.dylib
/usr/lib/libobjc.A.dylib
/usr/lib/libpam.2.dylib
/usr/lib/libpcap.A.dylib
/usr/lib/libsqlite3.dylib
/usr/lib/libutil.dylib
/usr/lib/libxar.1.dylib
/usr/lib/libxml2.2.dylib
/usr/lib/libxslt.1.dylib
/usr/lib/libz.1.dylib
/usr/lib/system/libcache.dylib
/usr/lib/system/libcommonCrypto.dylib
/usr/lib/system/libcompiler_rt.dylib
/usr/lib/system/libcopyfile.dylib
/usr/lib/system/libcorecrypto.dylib
/usr/lib/system/libdispatch.dylib
/usr/lib/system/libdyld.dylib
/usr/lib/system/libkeymgr.dylib
/usr/lib/system/libkxld.dylib
/usr/lib/system/liblaunch.dylib
/usr/lib/system/libmacho.dylib
/usr/lib/system/libquarantine.dylib
/usr/lib/system/libremovefile.dylib
/usr/lib/system/libsystem_asl.dylib
/usr/lib/system/libsystem_blocks.dylib
/usr/lib/system/libsystem_c.dylib
/usr/lib/system/libsystem_configuration.dylib
/usr/lib/system/libsystem_coreservices.dylib
/usr/lib/system/libsystem_darwin.dylib
/usr/lib/system/libsystem_dnssd.dylib
/usr/lib/system/libsystem_featureflags.dylib
/usr/lib/system/libsystem_info.dylib
/usr/lib/system/libsystem_kernel.dylib
/usr/lib/system/libsystem_m.dylib
/usr/lib/system/libsystem_malloc.dylib
/usr/lib/system/libsystem_networkextension.dylib
/usr/lib/system/libsystem_notify.dylib
/usr/lib/system/libsystem_platform.dylib
/usr/lib/system/libsystem_pthread.dylib
/usr/lib/system/libsystem_sandbox.dylib
/usr/lib/system/libsystem_secinit.dylib
/usr/lib/system/libsystem_symptoms.dylib
/usr/lib/system/libsystem_trace.dylib
/usr/lib/system/libunwind.dylib
/usr/lib/system/libxpc.dylib