I upgraded my mac to Sierra and I can't install qt. I wrote "brew install qt" and I received the message below. Do you have any recommendations?
"This formula either does not compile or function as expected on macOS
versions newer than El Capitan due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build."
if you really need qt4, you can try
brew install cartr/qt4/qt
I was able to sucessfully work around this on a fresh install of Sierra this evening.
It looks like qt.rb will execute just fine on MacOS Sierra, you just need to remove the Maximum OS requirement entry to allow it to run.
This is what was required on my machine.
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/qt.rb
Comment out line 36 as follows
#depends_on MaximumMacOSRequirement => :el_capitan
I am curious if this works for others.
Thanks
Searching with
brew search qt
you can see there is a QT5
brew install qt5
According to https://github.com/Homebrew/homebrew-core/issues/1957#issuecomment-225806023 there will be no support for qt(4)
Qt4 is not supported anymore; users should upgrade to Qt5. Homebrew backported a fix for 10.11 but doesn’t intend to maintain this forever. There’s currently a pull-request that may fix that. You’ll have to wait for it to be merged if you want to install Qt4 with Homebrew.
install qt4
Please note: Qt4 is unsupported by its creators, so there are likely security/usability problems with it that will never be resolved. If you can, please consider migrating your projects to Qt5.
resource : https://github.com/cartr/homebrew-qt4
brew tap cartr/qt4
brew tap-pin cartr/qt4
brew install qt
Related
I brew install --HEAD'd node recently to see if the upstream version fixed a bug I was experiencing. (It did!)
Now I'd like to downgrade back to the stable, bottled version. Is there a simple command to do so?
brew reinstall simply pulls & rebuilds the HEAD version from upstream. (Where does Homebrew "remember" my HEAD preference?)
brew uninstall --ignore-dependencies && brew install is of course possible, but annoying given that it would also delete my build history & install receipts, which I'd like to keep around a bit if possible.
I did the same thing for pyenv while waiting for version 2.1.0 to make it into homebrew-core. I figured I'd simply uninstall pyenv and reinstall it without --HEAD, but when I attempted to do so, Homebrew told me:
Only uninstalling HEAD version because multiple versions are installed
(Or something like that.)
The documentation doesn't really explain this, as far as I can tell, but I did find an explanation here:
uninstall first removes whichever version is "active", i.e. linked into the main prefix. What happens when you run uninstall again depends on how many other versions are installed: if there is only one, it is removed, otherwise it errors out because it doesn't know which one to uninstall (unless you pass --force).
So I didn't need to do anything else, aside from delete the pyenv repository that Homebrew cloned under ~/Library/Caches/Homebrew/pyenv--git. (I think the fact that it doesn't remove this might be a bug.)
Now, if you first uninstalled node stable, then installed HEAD, your situation might be different.
(I know this might not be a great answer, but it's too long for a comment.)
I'm using Home Brew on my system to allow users to install some packages; there are some that are installed at the system level (e.g. build-essential) but when I run a formula brew is not able to see them and download them. Is this the expected behavior or is there something I can do to fix this?
It's an expected behavior. Homebrew on Linux, namely Linuxbrew, uses its own libraries.
Homebrew does not use any libraries provided by your host system, except glibc and gcc if they are new enough. Homebrew can install its own current versions of glibc and gcc for older distributions of Linux.
References
Homebrew documentation of Linuxbrew
I am really new to using macintosh, Kinect and sensors and I am trying to install drivers of Kinect Xbox on my mac OS X Yosemite v. 10.10.5 and I found out that I should install OpenNI, SensorKinect and NITE. I am trying first to install some libraries, so as to move on with the installation, using the command: sudo port install libtool.
However, when I type it, what I take is this:
sudo: port: command not found.
I have also tried to check my PATH, but it didn't help.
I have searched everywhere I could to find out why this happens, but I didn't manage to find an answer. Could you please help me?
I solved it using sudo /opt/local/bin/port install wxWidgets-3.0
I'm trying to install a library on my mac and one of the requirements of this library that I should install MPICH and ensure that the system paths are configured to point to it instead of the default OpenMPI installation.
So I installed MPICH2 using macport and I want to make sure that the system is using that one, how can I do that?
You need to do it the same way you would with any other library/program. Set your LD_LIBRARY_PATH and PATH variables appropriately so that the MPICH path is in front of Open MPI.
However, I would point out that on Mavericks, I don't think Open MPI is still distributed as part of the operating system anymore.
You're also welcome to use Homebrew to install MPICH. The MPICH project has moved on from being called MPICH2 since it went to version 3.0. The latest version is 3.1.2. You can either download it and install it yourself at www.mpich.org/downloads or via Homebrew on Mac. I believe it's also in Macports but I don't know enough about that.
It should have given you directions on completion of the install. Use 'port notes mpich-default' (assuming mpich-default is what you installed) to see them again. They will be something like; 'sudo port select mpich mpich-default-fortran'.
Use 'mpicc -show' and make sure it looks correct after the above command to verify your PATH is correct.
I had installed ImageMagick without any problems using the standard procedure (MacPorts) on Snow Leopard, however it has stopped working after an upgrade to Mavericks.
So, after much time spend looking at people with similar problems, I uninstalled it using port, then reinstalled using brew.
The installation worked fine as far as I can tell, however I now get an issue because of version incompatibility. This is what happens when I try to run convert:
ImageMagick reported error code 5. Message: dyld: Library not loaded:
/usr/local/lib/libltdl.7.dylib Referenced from:
/usr/local/Cellar/imagemagick/6.8.7-0/bin/convert
Reason: Incompatible library version:
convert requires version 11.0.0 or later,
but libltdl.7.dylib provides version 9.0.0
Apparently this library is out of date... but how to update it?
Had the same issue after upgrading to Maverick. My whole dev env was broken.
For fixing imagemagick - installed provided here - http://cactuslab.com/imagemagick/
helped me.
Hope it helps