-
Notifications
You must be signed in to change notification settings - Fork 846
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
internal ranlib command failed #4380
Comments
@QuRyu From your logs, I can see:
Do you have I ran into a similar issue. In my case, Homebrew had installed |
Hi @koyedele,
It seems this ar is not linked to any other ar. |
@QuRyu, but do you also have Apple's |
Did you find a solution to this? I'm getting the same error when trying to install Apache tomcat |
@QuRyu are you using @bonsalldavid same question I guess - are you using |
Sorry to reply late. I had been busy these two weeks with school work. @koyedele How should I do that? I tried to set the $PATH variable without @mattaudesse I uninstalled macports a while ago, without cleaning up all the links and files. Would reinstalling macports and completing the migration process help? |
Hey @QuRyu, no worries - school obviously has to take priority! Reinstalling $ sudo mv /opt/local/bin/ranlib /opt/local/bin/ranlib-backup-2018-11-16
$ sudo mv /opt/local/bin/ar /opt/local/bin/ar-backup-2018-11-16
# I'd recommend deleting `.stack-work` from your project directory too:
$ rm -r .stack-work
# Hopefully this completes successfully now
$ stack build That may not be 100% sufficient but I suspect it'll at least help you get further along - good luck and please let us know either way. Also, I'm going to go ahead and close this issue since it's not strictly |
@mattaudesse Thank you so much! Now stack is running properly. |
@mattaudesse The method of delete ranlib and ar works for me. My case is not the exactly the same as the original problem, but it is similar (upgrade Mac os to Majave then run something requires libtool). |
This was my case as well, I had to run Thanks! |
General summary/comments (optional)
After upgrading the macOS system to the latest version, macOS Mojave, version 10.14, "stack build" does not run properly and reports error "internal ranlib command failed". I am not if this pertains only particularly my laptop or the stack breaks under new system version.
Steps to reproduce
cd pcap
.stack build
.Expected
The build should finish without reporting any error.
Actual
Stack reports "internal ranlib command failed".
Stack version
Ranlib version
Method of installation
The text was updated successfully, but these errors were encountered: