It's UWAweek 47

help3002

This forum is provided to promote discussion amongst students enrolled in CITS3002 Computer Networks.

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.


 UWA week 10 (1st semester, week 2) ↓
SVG not supported

Login to reply

👍x2
helpful
3:19pm Sun 10th Mar, ANONYMOUS

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


SVG not supported

Login to reply

👍?
helpful
3:25pm Sun 10th Mar, Christopher M.

When you run otool -L /usr/local/bin/cnet (it's very wide) do you see any mention of @rp*th, /usr/local/lib, or libc++ ?


SVG not supported

Login to reply

👍x1
helpful
3:45pm Sun 10th Mar, ANONYMOUS

In this list of shared libraries this pops up:
@rp*th/libc++.1.dylib (compatibility version 1.0.0, current version 1.0.0)


SVG not supported

Login to reply

👍?
helpful
4:47pm Sun 10th Mar, Christopher M.

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.


SVG not supported

Login to reply

👍?
helpful
4:52pm Sun 10th Mar, ANONYMOUS

I have installed Xcode from the App Store and the Command Line Tools directly from Apple Developer website. The following is the result:
xcode-select -p
/Applications/Xcode.app/Contents/Developer


 UWA week 11 (1st semester, week 3) ↓
SVG not supported

Login to reply

👍?
helpful
6:43am Tue 12th Mar, Christopher M.

ANONYMOUS wrote:
> ``` > 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 )


SVG not supported

Login to reply

👍?
helpful
1:16pm Tue 12th Mar, ANONYMOUS

When I run mdfind -name libc++ the following list appears:
2024-03-12 13:09:56.049 mdfind[5473:151657] [UserQueryParser] Loading keywords and predicates for locale "en_AU"
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/lib/libc++experimental.a
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/lib/libc++.1.tbd
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/lib/libc++abi.tbd
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/lib/libc++abi.tbd
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/lib/libc++experimental.a
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/lib/libc++.1.tbd
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libc++.1.tbd
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libc++abi.tbd
I used the following command 'ls /usr/local/lib/libc++.1.dylib' to locate it, I get the result:
/usr/local/lib/libc++.1.dylib
However if I use this command 'ls /usr/lib/libc++.1.dylib', I get this result:
ls: /usr/lib/libc++.1.dylib: No such file or directory


SVG not supported

Login to reply

👍?
helpful
2:33pm Tue 12th Mar, Jasper P.

Hi, I just bought an M3 and I am having the same issue. libc++.1.dylib doesn't seem to exist anywhere on my machine.


SVG not supported

Login to reply

👍?
helpful
5:46pm Tue 12th Mar, Jasper P.

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.


SVG not supported

Login to reply

👍?
helpful
4:02am Wed 13th Mar, Christopher M.

"Jasper Paterson" <22*3*3*1@s*u*e*t*u*a*e*u*a*> wrote:
> 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).


SVG not supported

Login to reply

👍?
helpful
8:29am Wed 13th Mar, Jasper P.

Thanks Chris, that was the only other library needed. Cnet up and running 👍


SVG not supported

Login to reply

👍?
helpful
8:35am Thu 14th Mar, ANONYMOUS

How did you manage to solve this? Having the same issue on my M2 mac. libc++.1.dylib doesn't exist on my machine.


SVG not supported

Login to reply

👍x1
helpful
8:49am Thu 14th Mar, Christopher M.

ANONYMOUS wrote:
> 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.


SVG not supported

Login to reply

👍x2
helpful
10:55am Thu 14th Mar, Ryan M.

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


SVG not supported

Login to reply

👍?
helpful
1:02pm Thu 14th Mar, Milan B.

Thank you! This worked for me on an M2 mac. Cheers for the clear instructions.


SVG not supported

Login to reply

👍?
helpful
4:46pm Fri 15th Mar, Davin D.

This worked, thank you!!!


SVG not supported

Login to reply

👍?
helpful
3:53am Sat 16th Mar, Christopher M.

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)


 UWA week 12 (1st semester, week 4) ↓
SVG not supported

Login to reply

👍?
helpful
2:54pm Tue 19th Mar, Henuka D.

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.


SVG not supported

Login to reply

👍?
helpful
9:05am Thu 21st Mar, Christopher M.

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 ?


 UWA week 13 (1st semester, week 5) ↓
SVG not supported

Login to reply

👍?
helpful
2:22pm Tue 26th Mar, Henuka D.

Just tried the newest one and it FINALLY WORKED!!

Thanks for all the help!

I don't know why it didn't work as I was doing the same things as before, but I'll just pass that up to computers being computers.

Glad to see cnet finally working! 💪😎👍


SVG not supported

Login to reply

👍?
helpful
2:45pm Tue 26th Mar, Christopher M.

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.

But, of well. Good luck!

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy