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.
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
Receiving the following error:
Error: No available formula with the name "rabbitmq"
Tried reinstalling brew and updating brew with no help.
its because your brew installation has some problems. Just try to reset it to master branch by running following command
git -C $(brew --repository homebrew/core) checkout master
then run
brew update
after that you can run
brew install rabbitmq
and it should be working.
Like #gino-mempin commented, you should be able to install by using brew install rabbitmq.
You can use brew doctor and brew config to verify if you have local brew setup issue.
With that being said, we failed to update rabbitmq to latest 3.8.5 (there are several failed attempts).
I tried installing CouchDB 1.6 via Homebrew per the instructions on the official CouchDB docs at docs.couchdb.org, but I am having no success. First, I tried the native application and that worked but apparently that version does not support CORS. It has been a frustrating experience, so any help will be greatly appreciated.
Here is the error that I am getting when trying to ping CouchDB:
curl: (7) Failed to connect to 127.0.0.1 port 5984: Connection refused
I followed the installation guide here: http://docs.couchdb.org/en/1.6.1/install/mac.html
These were the terminal commands I used:
open /Applications/Installers/Xcode\ Tools/XcodeTools.mpkg
--> File not found (this step is listed as optional, so I moved on)
brew update
brew doctor
brew install autoconf
brew install autoconf-archive
brew install automake
brew install libtool
brew install erlang
brew install icu4c
brew install spidermonkey
brew install curl
brew link icu4c
--> Requires --force option which can cause installations to fail
(I did not do the --force option)
brew link erlang
brew install couchdb
--> To test CouchDB run: curl http://127.0.0.1:5984/
curl http://127.0.0.1:5984/
--> curl: (7) Failed to connect to 127.0.0.1 port 5984: Connection refused
Mac Info:
MacBook Pro (Retina, 13-inch, Late 2013)
OS X Yosemite
Version 10.10.3
My guess is that it is installed, but just not running. Can you try running couchdb -d?
That should start it up in the background, if you need it to run on every startup, you can continue following the instructions for "Running as a Daemon"
I want to run "repo" command on Mac (And download the code from Git repo). I was following the above guide:
http://threadeds.blogspot.com/2009/02/getting-started-with-google-android-on.html
When I execute the command,
POSIXLY_CORRECT=1 sudo port install gmake libsdl git-core gnupg
I get this error:
I'm having the following issue while installing
Error: git-core has been made obsolete by the port git. Please install git instead.
Error: org.macports.configure for port git-core returned: obsolete port
Please see the log file for port git-core for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_git-core/git-core/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port git-core failed
How can I resolve this issue?
It seems that port has renamed the git-core package to just git. So changing the command to
POSIXLY_CORRECT=1 sudo port install gmake libsdl git gnupg
should work.
If you update macports (sudo port selfupdate) you'll find that repo now depends on git instead of git-core.
Before: (/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python/repo/Portfile) contains:
depends_run port:git-core
After:
port info repo
repo #1.19_1 (python)
Description: Repo is a tool that we built on top of Git. Repo helps us
manage the many Git repositories, does the uploads to our
revision control system , and automates parts of the
Android development workflow. Repo is not meant to replace
Git, only to make it easier to work with Git in the
context of Android.
Homepage: http://source.android.com/source/git-repo.html
Runtime Dependencies: git
Platforms: darwin
License: Apache-2
Maintainers: nomaintainer#macports.org
or
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python/repo/Portfile:
depends_run port:git
So simply use macports to install repo.
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!