I found that other people too have had trouble in installing Meld to Mac by MacPorts.
I run
sudo port install meld
I get
sudo port install meld
---> Activating shared-mime-info #0.60_0
Error: Target org.macports.activate returned: Image error: /opt/local/bin/update-mime-database already exists and does not belong to a registered port. Unable to activate port shared-mime-info.
Error: The following dependencies failed to build: py25-gnome gconf gtk2 shared-mime-info orbit2 libidl gnome-vfs desktop-file-utils gnome-mime-data libbonobo libbonoboui libglade2 libgnome esound audiofile libgnomecanvas libart_lgpl libgnomeui gnome-icon-theme hicolor-icon-theme icon-naming-utils p5-xml-simple p5-xml-namespacesupport p5-xml-sax gnome-keyring libtasn1 py25-gtk py25-cairo py25-numpy py25-nose py25-gobject py25-orbit
Error: Status 1 encountered during processing.
How can you install Meld to Mac?
As rspeed said, you probably had a bad install or upgrade that created that file. Alternately, you installed something outside of macports into the /opt/local tree (though I'm not sure how you would have ended up doing that). I recommend just doing a force activate of the shared-mime-info port, then trying to reinstall meld.
sudo port activate -f shared-mime-info
sudo port install meld
I found that MacPorts worked to install meld, but it didn't work straight away as advertised.
After running and installing all the dependencies, it failed, and gave a cryptic log message similar to the one in this question (but not identical).
After a bit of digging around I found I had to do the following:
Make sure I had properly agreed to the license for XCode
xcodebuild -license
Install the Xcode command line tools
xcode-select --install
Install rarian (it seems to be a dependency that MacPorts failed to recognize)
sudo port install rarian
The latter instructions come from here:
http://www.codez.co.uk/2014/02/meld-on-mac-osx-mavericks-10-9/
and this was the last step before I was able to get it working.
Somehow that file already exists, probably from a bad uninstall or upgrade.
If you force the install it probably won't break anything.
sudo port install --force meld
Installing meld on OS X 10.10. For added difficulty, must use OS X's quartz display server (rather than X11 display server):
$ sudo port install python27
$ sudo port select --set python python27
$ sudo port install rarian
$ sudo port install pango +no_x11
$ sudo port install gtk2 +quartz
$ sudo port install py27-pygtk +quartz
$ sudo port uninstall --follow-dependents gtk3
$ sudo port install gtk3
$ sudo port uninstall py27-pygtksourceview
$ sudo port install py27-pygtksourceview +quartz
$ sudo port install gnome-desktop
$ sudo port install meld +quartz
$ sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
$ sudo launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
<reboot system...>
$ meld
Wow, it works!
Related
I am using macOS 11.5.1 Big Sur and I tried to install Graphviz via
brew install graphviz
but I got an error:
Error: python#3.9: wrong number of arguments (given 1, expected 0)
The version of my Homebrew is
Homebrew 3.0.5
Homebrew/homebrew-core (git revision 7ff3c752de; last commit 2021-08-13)
Homebrew/homebrew-cask (git revision af069ca1b1; last commit 2021-08-13)
I have no idea about the reason. Any suggestions? Thank you.
I have fixed this issue, by the following commands.
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --switch /Applications/Xcode.app
Then rerun the brew install:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
It works on my Mac. Just share in case that anyone encounters the same issue.
I was unable to get it to work with homebrew. I read other threads recommending trying with Ports, which I did and failed also, since I got a little farther with Ports, I continue to look and finally found this...
Uninstall graphiz if you tried homebrew: brew uninstall graphviz
Install Ports https://www.macports.org/install.php
edit the Ports installation https://www.macports.org/install.php
Edit opt/etc/macports/sources.conf, comment out the rsync entry, and add a new entry as follows:
#rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]
https://distfiles.macports.org/ports.tar.gz [default]
Run sync in debug mode and watch for the tarball being used instead of rsync:
sudo port -d sync
sudo port install graphviz
i want to install virtual box on mac os EI Captain with homebrew and also if i want to install more packages with homebrew how can i know that package is available in homebrew?
Thanks
First, you’ll need the command-line tools for Xcode installed. On a modern Mac OS X system, you can install these just by running the following command in a Terminal window. You could also install the full Xcode application from Apple, if you prefer — but that takes up more space on your Mac and isn’t necessary.
xcode-select --install
Next, install Homebrew. You can just open a Terminal window, copy-paste the following command, and press Enter:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
This script informs you what it will do. Press Enter and then provide your password to install it. By default, it installs Homebrew so you can use the brew command without typing the sudo command and providing your password.
Run the following command once you’re done to ensure Homebrew is installed and working properly:
brew doctor
Once you’re done, run the following command to install Homebrew Cask. It uses Homebrew to install Cask:
brew install caskroom/cask/brew-cask
Now you can install the Virtual box by entering the following commands
brew install vagrant-completion
brew cask install virtualbox
brew cask install vagrant
brew cask install vagrant-manager
For knowing that your package is available or not you can search your desire package by the following commands
For Open-Source Utilities
brew search name-of-your-package
For graphical Apps
brew cask search name-of-your-app
For installing Graphical Apps run
brew cask install name-of-your-app
For installing Open-Source Utilities run
brew install name-of-your-package
I am trying to install Siege with libssl on Mac OS 10.12, but when I use the utility against an https url I am receiving the following error.
[error] HTTPS requires libssl: Unable to reach https://example.com/
with this protocol: Socket is already connected
I am installing with the following commands from this wiki:
./configure --with-ssl
make
make install
This is on macOS Mojave, with openssl installed using HomeBrew. You'll be using a brew command to get the openssl install directory:
git clone https://github.com/JoeDog/siege.git
cd siege
./utils/bootstrap
# here's what you're looking for:
./configure --with-ssl=$(brew --prefix openssl)
make
Now you can run siege with ./src/siege https://whatever.domain.invalid. This was tested with Siege 4.0.4rc3 commit hash 05dcfac88ecdd57bd94276e4ce82477cba9129b6 and openssl 1.0.2s on macOS 10.14.5.
use brew to install siege.
it fixed the issue for me. the only extra thing i had to do was to link siege.
https://coderwall.com/p/qfrk1w/making-siege-work-with-https-on-os-x-mavericks .
brew uninstall siege
brew install openssl
brew link --force openssl
brew install siege
The extra steps ti had to do (Mac OS Sierra low) .
ln -s /usr/local/Cellar/siege/4.0.4/bin/siege /usr/local/bin/siege .
I am using Homebrew v0.9.5 on my Mac OS X version 10.9.4
When I run the command: `brew install imagemagick, this error occurred.
$ brew install imagemagick
==> Installing dependencies for imagemagick: libpng, freetype
==> Installing imagemagick dependency: libpng
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.6.12.mavericks.bottle.tar.gz
curl: (7) Failed connect to downloads.sf.net:443; Operation timed out
Error: Failed to download resource "libpng"
Download failed: https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.6.12.mavericks.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://downloads.sf.net/project/libpng/libpng16/1.6.12/libpng-1.6.12.tar.gz
curl: (7) Failed connect to downloads.sf.net:443; Operation timed out
Error: Failed to download resource "libpng"
Download failed: https://downloads.sf.net/project/libpng/libpng16/1.6.12/libpng-1.6.12.tar.gz
I have added --disable-openmp option, it also doesn't go well.
$ brew install imagemagick --disable-openmp
brew doctor command result has no problem.
$ brew doctor
Your system is ready to brew.
Have you tried a
$ brew update
$ brew install imagemagick --disable-openmp --build-from-source
Apparently that seemed to fix it for me on Mac OS 10.8 (Mountain Lion). Previously I checked out the latest imagemagick brew recipe with "brew versions imagemagick" and "git checkout e68e443", see here and here
I'm not certain whether the source of my problem was the same as the OP's, however (though this has an accepted answer already) I'll post this in case this solution works for others.
Using brew install imagemagick, I would encounter the following error:
curl: (52) Empty reply from server Error: Failed to download resource
"libpng" Download failed:
https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng-1.6.16.tar.xz
Which is similar, if less specific than the OP's message.
As it turned out, I already had a previous version of libpng installed (version 1.5.7). I then ran:
brew upgrade libpng
Followed by another brew install libpng, and this time it succeeded, as it now had the correct version needed.
This problem also occurs because https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng-1.6.16.tar.xz has a badly configured SSL certificate. Open the link in your browser and see if your browser complains.
If that's the case, you can manually download the file to /Library/Caches/Homebrew and run again.
Source: https://github.com/Homebrew/homebrew/issues/36703
For me it was upgrading to El Capitan. I found the simplest solution was to force remove homebrew:
sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
then to re-install it:
sudo /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
then install imageMajick:
brew install ImageMagick
Depending on your setup you may not want to sudo. For me, its fine. Enjoy a snack while you manipulate images.
In my case the url was simply not correct, with which homebrew wanted to download the required file. I looked it up here http://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.16/ by myself and copied it to /Library/Caches/Homebrew like #Dan suggested.
I then run brew install libpng again and it worked.
Follow this:
brew install imagemagick#6
Add below lines in to ~/.bash_profile file
export LDFLAGS="-L/usr/local/opt/imagemagick#6/lib" export
CPPFLAGS="-I/usr/local/opt/imagemagick#6/include" export
PKG_CONFIG_PATH="/usr/local/opt/imagemagick#6/lib/pkgconfig"
Install Rmagick
source ~/.bash_profile
gem install rmagick
If you are an Anaconda/Miniconda user on Mac OSX or Linux, you can install packages like imagemagick using conda.
conda install -c conda-forge imagemagick
https://anaconda.org/conda-forge/imagemagick
I try to install git and libsndfile with port, but I get this messages.
MacPorts 2.1.2
Error: Port git not found
Error: Port libsndfile not found
What is the problem?
You can try port search git to search for the right port.
This article will show you how to install the Version Control Git :
Installing git with MacPorts
Do a sudo port selfupdate to updating the MacPorts base sources
then do a sudo port install libsndfile.
You may want to perform a sudo port upgrade outdated to upgrade your installed ports first.