-
Notifications
You must be signed in to change notification settings - Fork 2
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
ln: /usr/bin/pbqff: Operation not permitted (macOS) #294
Comments
Awesome, thanks for the followup! For the first issue, I think I just need to add an explicit rule to build Beyond that issue, I think the best practice here is to have some kind of For the final command, if you're running I'm going to try to add an installation workflow to the GitHub CI to make sure this stuff stays current with the rest of the repo in the future. Thanks again for testing all of this out and submitting these reports! |
Ah... it shouldn't be too bad, though, because most things that you've adjusted recently are for compilation purposes (not fixing bugs in the programs), right? So long as it runs, the results should be fine...? The So to install the man entry I should just enter the command |
Yeah that's true, and I don't actually run any real calculations on my desktop anyway. The recipe for deploying to our cluster has definitely been updating the binary. I just merged #295, which, despite the name, also included changes to the Makefile and to the repository README. You should be able to use the make install.full PREFIX=/usr/local/bin MANDIR=/usr/local/share/man/man1 I switched the plain
Ah, no, I should have been more clear there. That's the erroneous expansion of the |
I reinstalled it with the updated files, and it works perfectly (including the man entry)! I'm going to make a separate issue for something I've found in qffbuddy, but I will close this issue now. |
Back again!
MacPorts finally updated their version of Rust so I have been able to install pbqff somewhat successfully. I was not able to use
make install
to compile pbqff because this error came up:However, I was able to install it using the command
sudo cargo build --features vers --release
(it wouldn't install withoutsudo
; an error said that some permission or other had been denied).I then tried to follow up with the next commands, and further errors popped up. These are the errors that I am posting about. When I tried entering the command
sudo ln -sf $(realpath target/release/pbqff) /usr/bin/pbqff
, I ended up getting an error saying:The same thing happened with qffbuddy. After a quick search, I think I found the reason. It turns out that, after one of the OS updates, apple decided that they would prevent anyone from messing with some of the core parts of the OS, including most of
/usr/
(see this post on Stack Overflow).It looks like the solution is to simply change the command to:
The program I compiled myself works perfectly this way.
There is only one other problem. Executing the command
sudo cp $< $(MANPATH)/pbqff.1
leads to an error sayingzsh: no such file or directory: /pbqff.1
($MANPATH
is the Mac equivalent of$MANDIR
). I'm not quite sure how to fix this one, because I don't know what the pbqff.1 directory/file is (or where to find it).In summary, I've managed to get the program running, but the commands for making the symbolic links need to be changed slightly to work on Mac. And, if you know why the final command is not working, I'd be happy to test out any ideas you might have to make it work!
The text was updated successfully, but these errors were encountered: