0

I been trying to install a port with the command sudo port install NAME_OF_PORT

The issue I am having with this particular port (OpenCV) is that it keeps asking me for dependencies with an error like the following:

Error: The following dependencies were not installed: libunwind-headers 
llvm-3.1 llvm_select

Is there any way I can sudo port install NAME_OF_PORT with all of its dependencies with just one command?

Thanks a lot for your time, any tip much appreciated.

JordanBelf
  • 3,208
  • 9
  • 47
  • 80
  • Usually all dependencies are automatically installed. Maybe an error occurred while installing some of them. Try installing those again by hand. – Vortexfive Aug 20 '12 at 07:51
  • Thanks Vortexfive, I tried installing them by hand, but they itself have dependencies so it was getting forever – JordanBelf Aug 20 '12 at 17:36
  • Please have a look at http://stackoverflow.com/questions/11888222/trouble-installing-libunwind-headers-via-macports . It is possible that you have a problem installing libunwind-headers (which is a dependency of llvm and opencv). If no errors occur for any of the dependencies, macports should automatically install them all. – Vortexfive Aug 21 '12 at 15:27
  • Thanks I will try using sudo xcodebuild -license agree – JordanBelf Aug 21 '12 at 19:58

1 Answers1

0

Try running sudo port -v selfupdate and then rerun sudo port install opencv. If that's not helping try running sudo port upgrade outdated to upgrade outdated dependencies.

Also take a look at this guide I wrote: Compile OpenCV (2.3.1+) for OS X Lion / Mountain Lion with Xcode

Community
  • 1
  • 1
dom
  • 11,894
  • 10
  • 51
  • 74
  • Thanks a lot and thanks for the guide, I will be testing everything right now – JordanBelf Aug 20 '12 at 17:37
  • @JordanBelf Don't forget to accept the answer, if it was helpful / solved your problem … – dom Aug 21 '12 at 06:27
  • Yes yes, sorry about the delay. I am testing everything and OpenCV in taking me forever to get it right but I sure will once I get everything working – JordanBelf Aug 21 '12 at 18:33
  • The answer to this question might also be helpful: http://stackoverflow.com/questions/4755274/downloading-macports-dependencies-without-installing – Seth Difley Dec 31 '15 at 19:07