ros2 galactic mac m1 install libzstd error

asked 2022-02-04 04:28:51 -0500

canatan gravatar image

Hi, I keep getting an error when trying to install ros galactic. Here are the details.

Error:

 --- stderr: zstd_vendor                                                        
CMake Error at /Users/fatma/miniforge3/envs/stats/lib/cmake/zstd/zstdTargets.cmake:81 (message):
  The imported target "zstd::libzstd_static" references the file

     "/Users/fatma/miniforge3/envs/stats/lib/libzstd.a"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/Users/fatma/miniforge3/envs/stats/lib/cmake/zstd/zstdTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /Users/fatma/miniforge3/envs/stats/lib/cmake/zstd/zstdConfig.cmake:1 (include)
  CMakeLists.txt:12 (find_package)


---
Failed   <<< zstd_vendor [15.6s, exited with code 1]

Checked ../stats/lib/ and there was no libzstd.a so I created a symlink linking libzstd.dylib to libzstd.a Now there's a libzstd.a but it still didn't pick it up. (I'm not sure if this symlink was smart so I've removed it)

Any pointers etc would be really helpful. Thank you

edit retag flag offensive close merge delete