Please consider offering answers and suggestions to help other students!
And if you fix a problem by following a suggestion here,
it would be great if other interested students could see a short
"Great, fixed it!" followup message.
How do I ask a good question?
Displaying the 21 articles in this topic
Showing 21 of 503 articles.
Currently 43 other people reading this forum.
I'm trying to install Cnet on my Macbook pro 2020 (M1). I have run `install-cnet.sh` with no issues getting the following output:
downloading cnet-Darwin-arm64
installing executable as /usr/local/bin/cnet
downloading cnet-lib.tgz
installing resources in /usr/local/lib/cnet
-rwxr-xr-x 1 root admin 6275048 10 Mar 15:10 /usr/local/bin/cnet
drwxr-xr-x 81 [insert] staff 2592 10 Mar 15:10 /usr/local/lib/cnet
When I try to run Cnet, I get the following error:
dyld[4774]: Library not loaded: @rp*th/libc++.1.dylib
Referenced from: <121BC1F4-F4FB-3A17-A817-E79092717D3E> /usr/local/bin/cnet
Reason: tried: '/usr/local/lib/libc++.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib/libc++.1.dylib' (no such file), '/usr/local/lib/libc++.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib/libc++.1.dylib' (no such file)
[1] 4774 abort /usr/local/bin/cnet
I think that your macOS systems have Xcode installed (as required), but not the Command Line Tools. You can install them with:
xcode-select --install
and then xcode-select -p should report their location.
> ```
> dyld[4774]: Library not loaded: @rp*th/libc++.1.dylib
> Referenced from: <121BC1F4-F4FB-3A17-A817-E79092717D3E> /usr/local/bin/cnet
> Reason: tried: '/usr/local/lib/libc++.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib/libc++.1.dylib' (no such file), '/usr/local/lib/libc++.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib/libc++.1.dylib' (no such file)
> [1] 4774 abort /usr/local/bin/cnet
> ```
Still trying to resolve this one.
I can't understand why your linker is looking in /System/Volumes/Preboot/Cryptexes/... for anything, unless you knowingly have an environment variable set, such as LD_LIBRARY_PATH
Does /usr/lib/libc++.1.dylib exist on your machine ?
(trying to find where your libc++ may be - mdfind -name libc++ shows it )
I downloaded conda, so now I have on my machine /opt/anaconda3/lib/libc++.1.dylib. I made a symlink of that in /usr/local/lib. That seemed to work, but now cnet says: Library not loaded: @rp*th/libunwind.1.dylib. This unwind library isn't in /opt/anaconda3/lib.
> I downloaded conda, so now I have on my machine /opt/anaconda3/lib/libc++.1.dylib. I made a symlink of that in /usr/local/lib. That seemed to work, but now cnet says: Library not loaded: @rp*th/libunwind.1.dylib. This unwind library isn't in /opt/anaconda3/lib.
Hopefully this doesn't send you down a rabbit-hole, but try this: [CITS3002]⬈
(I wish I knew why these libraries claim to be required - my code makes no reference to this (that's OK), but then otool reports it as being required from files that don't exist. Too weird).
> How did you manage to solve this? Having the same issue on my M2 mac. libc++.1.dylib doesn't exist on my machine.
I'm try to understand and fix this problem; I'm confused why a (non-existent) library that my code is not dependent upon, is a show-stopper. Really hope to have a solution today.
posting this before Chris posts a solution. I followed this thread with the same problem and managed to get it working. Essentially goes like this:
1. successfully execute ./install-cnet.sh with no apparent problems, the error occurs when calling the executable cnet
2. install anaconda for mac from [https://www.anaconda.com/download/], make sure its specifically for M1/M2/M3 by selecting drop down
3. once its fully installed, a compatible version of libc++.1.dylib should come with it, for me it was located in [/opt/anaconda3/lib/libc++.1.dylib]
4. create a symlink from that file into [/usr/local/lib], which I did with the command [sudo ln -s /opt/anaconda3/lib/libc++.1.dylib /usr/local/lib/libc++.1.dylib]
5. calling cnet will now come with another error that libunwind.1.dylib is required in @rp*th (which is shorthand for /usr/local/lib by default)
6. download the libunwind.1.dylib file given by Chris earlier in this thread and place it into the [/usr/local/lib] directory and cnet should now work
For anyone still stuck using Apple Silicon, there's an updated installation script - [CITS3002]⬈
that, if necessary, downloads and installs the libraries discussed in this thread.
Thanks Jasper,
(I think just one 'impossible' WSL-2 problem to go)
This new installation script unfortunately doesn't seem to work for me still.
On an M1 laptop and get the following error when running the cnet command:
dyld[3082]: Library not loaded: @rpath/libc++.1.dylib
Referenced from: <121BC1F4-F4FB-3A17-A817-E79092717D3E> /usr/local/bin/cnet
Reason: tried: '/usr/local/lib/libc++.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib/libc++.1.dylib' (no such file), '/usr/local/lib/libc++.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib/libc++.1.dylib' (no such file)
zsh: abort /usr/local/bin/cnet
I do have to use sudo to install the program, but I'm pretty sure that doesn't change anything, just wanted to point it out in case that does somehow become relevant.
I'm surprised that you're still seeing this problem.
Have you downloaded and run the new installation script (from 16th March)?
Does your system have newly installed /usr/local/lib/libc++.1.0.dylib and /usr/local/lib/libunwind.1.dylib ?
That's great news - though we should all be frustrated, and curious, when things 'start' to work without our knowing why. We generally need to know 'why', so that we can re-apply the knowledge the next time we have a similar problem.