r-lib / xml2

Bindings to libxml2
https://xml2.r-lib.org/
Other
218 stars 83 forks source link

Error installing on Sonoma: Library not loaded: @rpath/libxml2.2.dylib #416

Closed ianderrington closed 10 months ago

ianderrington commented 10 months ago

I had this issue and even upgrading to Sonoma and re-installing x-code / homebrew I get the same issue.

I am running on M2 mac with Sonoma. I am following the getting started tutorial I run everything before the following line without fail. Here I have issues

./run agent start ManagenAI0

It issues the following errors

Error occurred while registering abilities: dlopen(/Users/ianderrington/Library/Caches/pypoetry/virtualenvs/autogpt-forge-G5p00PrU-py3.10/lib/python3.10/site-packages/lxml/etree.cpython-310-darwin.so, 0x0002): Library not loaded: @rpath/libxml2.2.dylib
  Referenced from: <625DCF7A-3129-369F-ADA1-75A0A146E271> /Users/ianderrington/Library/Caches/pypoetry/virtualenvs/autogpt-forge-G5p00PrU-py3.10/lib/python3.10/site-packages/lxml/etree.cpython-310-darwin.so
  Reason: tried: '/Users/ianderrington/miniconda3/envs/autogpt/lib/libxml2.2.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/ianderrington/miniconda3/envs/autogpt/lib/libxml2.2.dylib' (no such file), '/Users/ianderrington/miniconda3/envs/autogpt/lib/libxml2.2.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/ianderrington/miniconda3/envs/autogpt/lib/libxml2.2.dylib' (no such file), '/Users/ianderrington/miniconda3/envs/autogpt/bin/../lib/libxml2.2.dylib' (no such file), '/Users/ianderrington/miniconda3/envs/autogpt/bin/../lib/libxml2.2.dylib' (no such file)

I have tried to get this to work by (1) ensuring all libxml is appropriately referenced in my shell environment.

export PATH="/Users/ianderrington/git/external/homebrew/opt/libxml2/bin:$PATH"
export PATH="$PATH:/Users/ianderrington/git/external/homebrew/opt/libxml2/bin"
export LDFLAGS="-L/Users/ianderrington/git/external/homebrew/opt/libxml2/lib"
export CPPFLAGS="-I/Users/ianderrington/git/external/homebrew/opt/libxml2/include"

I have also tried removing miniconda references from my .zshrc file (per this tangential fix, and obtained the same error.

Presently I am at a loss and would love thoughts in getting this working again... (new computer and 4 months ago I had it working a bit, so I am looking forward to running it again!

ianderrington commented 10 months ago

Wrong repo... 👁️‍🗨️