Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building and installing on macos Sequoia. #2308

Open
samans opened this issue Oct 9, 2024 · 3 comments
Open

Building and installing on macos Sequoia. #2308

samans opened this issue Oct 9, 2024 · 3 comments
Labels
is:question Issue is actually a question.

Comments

@samans
Copy link

samans commented Oct 9, 2024

I looked through the closed issues and tried several things there and also several hours worth of googling, but I still can't run yanglint.

I'm running Sequoia on an intel based mac, using zsh.
I cloned the repository, did the building thing, everything builds.
When I run yanglint...

I get:
% yanglint --version
dyld[35022]: Library not loaded: @rpath/libyang.3.dylib
Referenced from: <3B24442F-38C6-3AB9-A4A0-C9C0CFDD7861> /usr/local/bin/yanglint
Reason: no LC_RPATH's found
zsh: abort yanglint --version

Any suggestions to how to get the RPATH set correctly?

thanks!

@michalvasko
Copy link
Member

I cannot help you with that as I am not using MacOS at all.

@michalvasko michalvasko added the is:question Issue is actually a question. label Oct 9, 2024
@samans
Copy link
Author

samans commented Oct 9, 2024

I cannot help you with that as I am not using MacOS at all.

Ok, hopefully someone can. If not I'll go back to parallels on the mac where it works fine on native ubuntu. Advice appreciated.
thanks!

@samans
Copy link
Author

samans commented Oct 9, 2024

I gave up trying to fix the CMake to find the dynamic libraries and just did this...

install_name_tool -add_rpath /usr/local/lib /usr/local/bin/yanglint

Things seem to be working now with yanglint version 3.4.2.

If there are others that have a better macos process, please let me know!

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:question Issue is actually a question.
Projects
None yet
Development

No branches or pull requests

2 participants