I cannot install libyaml in Brew - ruby-on-rails

I am trying to install Ruby on Rails on Mountain Lion. It says that libyaml is a dependency for ROR. I go to run brew install libyaml and it tries to download http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
Brew always returns with " curl: (7) couldn't connect to host"
This site no longer exists or is down. Does anyone have any ideas on how to fix this? I already tried brew update.

I feel like an idiot. Apparently my school blocks the URL's needed in the download process. Not ever a real problem.

Related

Warnings when running meld on Mac OS X Sierra

I've installed homebrew on my machine. Using brew I've installed meld. When I run it with git I get the following error:
Couldn't bind the translation domain. Some translations won't work.
'module' object has no attribute 'bindtextdomain'
2016-10-20 10:14:08.422 Python[22212:158273] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
(meld:22212): Gdk-WARNING **: GdkQuartzDisplay does not implement the monitor vfuncs
I don't understand how exactly brew works. In fact I never dug into its code, used it only to (un)install the software.
Did some online searches but there doesn't seem to be a solution to this. Has anyone figured it out?
Homebrew is simply a a package manager for MacOS. Unlike Linux, Mac doesn't always have all the external libraries you may need for things like wget, pip, etc out of the box. Homebrew tries to bridge this gap.
As for troubleshooting your issue, following Homebrew's troubleshooting steps helped me... You are probably just stuck in dependency hell, since Homebrew integrates alot of its libraries with Xcode (for me it was needing to update Xcode to latest): https://github.com/Homebrew/brew/blob/master/docs/Troubleshooting.md#troubleshooting
It's really important to keep thing up-to-date with brew update and then running brew doctor and brew prune resolved alot of issues for me as well.
If all else fails, homebrew seemed to have moved the meld formulae from homebrew/core to caskroom/cask. So I recall having to run the following command after running brew doctor and updating Xcode:
$ brew uninstall meld
$ brew install meld
Error: No available formula with the name "meld"
It was migrated from homebrew/core to caskroom/cask.
You can access it again by running:
brew tap caskroom/cask
$ brew tap caskroom/cask
$ brew cask install meld
==> Downloading https://github.com/yousseb/meld/releases/download/osx-9/meldmerge.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask meld
==> Moving App 'Meld.app' to '/Applications/Meld.app'.
==> Linking Binary 'Meld' to '/usr/local/bin/meld'.
🍺 meld was successfully installed!

HomeBrew Install Thrift 404 Error

Typing brew install thrift in Mac terminal attempts to download and install thrift-0.9.0 from following URLs:
==> Downloading http://www.apache.org/dyn/closer.cgi?path=thrift/0.9.0/thrift-0.9.0.tar.gz
==> Best Mirror http://mirror.olnevhost.net/pub/apache/thrift/0.9.0/thrift-0.9.0.tar.gz
However I get a 404 Not Found Error.
Newest version of thrift is 0.9.1, but the brew install thrift command only tries to install 0.9.0.
How do I install Thrift using brew install?
Is this something being updated in home brew as I type? or do I need a different command?
Thanks.
For me a simple brew update did the job.
But there seems to be issues presently with osx 10.9, I'm on 10.8
brew edit thrift
#url 'http://www.apache.org/dyn/closer.cgi?path=thrift/0.9.0/thrift-0.9.0.tar.gz'
url 'file:///path/to/thrift-0.9.0.tar.gz'

Error loading RubyGems plugin Library not loaded: /opt/local/lib/libssl.1.0.0.dylib

Library not loaded: /opt/local/lib/libssl.1.0.0.dylib
any advice?
I got this error when i first installed brew and it told me to move macports.
After i moved it back, this error went away.
This is what homebrew told me to move upon installation: homebrew uninstall/move macports UNDO
When installing homebrew, it tells you to move macports out of local with:
sudo mv /opt/local ~/macports
I started getting errors about libssl.1.0.0 not being loaded. after moving macports back, the errors went away.
sudo mv ~/macports /opt/local
I just hit this after brew doctor told me to move macports as per #blair anderson's answer.
Rather than move MacPorts back I simply ran rvm update and installed the latest ruby 2.0.0 (which I needed to do anyway) and voila… all happy.
Looks like it was a permissions error. I appreciate everyones help and responses!

Error installing CouchDB with homebrew osx 10.8 - skip dependency?

So I tried to install it according to the directions on couchdb wiki. and I get the following issue
Installing couchdb dependency: erlang-r15
==> Downloading https://github.com/erlang/otp/archive/OTP_R15B03-1.tar.gz
Already downloaded: /Library/Caches/Homebrew/erlang-r15-R15B03-1.tar.gz
Error: SHA1 mismatch
Expected: 5ba866722de79956b06966c232490d32bb7ba0a6
Actual: 7843070f5d325f95ef13022fc416b22b6b14120d
Archive: /Library/Caches/Homebrew/erlang-r15-R15B03-1.tar.gz
Is there anyway to tell brew to skip this dependency since I have already installed the correct version of erlang, and it can't see it?
Did you try brew uninstall couchdb and re install after?
I had the same issue, it fixed it for me
So to get this working I followed the instruction on the couchdb until the install couchdb command:
brew remove --force openssl erlang couchdb icu4c spidermonkey nspr
brew update
brew outdated
brew rm --force erlang
cd /usr/local
git checkout 168742f Library/Formula/erlang.rb
brew install erlang
since I knew I had the right erlang installed I altered the Bew formula to make it work correctly.
So I headed over to the formula at
vim /usr/local/Library/Formula/couchdb.rb
And altered the dependency line
depends_on 'erlang-15'
to
depends_on 'erlang'
and works great now!!
None of the solutions here worked for me, but the below did. Note, I had to build with unixodbc.
brew remove --force openssl erlang couchdb icu4c spidermonkey
brew update
brew install unixodbc
brew install homebrew/versions/erlang-r15 --with-unixodbc
# edit /usr/local/Library/Formula/couchdb.rb to change depends_on to 'erlang-r15'
brew install couchdb
You may want to first try force removing only erlang and couchdb -- as someone in this thread mentioned that force removing packages messed up his system (though I did not encounter this problem when running the above instructions).

trouble reinstalling ruby

I had to uninstall then reinstall ruby.
When I went to install it the installation went off without a hitch except for a strange error:
ERROR: Error running 'bunzip2 '/home/tom/.rvm/archives/ruby-1.9.2-p180.tar.bz2'', please read /home/tom/.rvm/log/ruby-1.9.2-p180/extract.log
Now when I go to install rails it alerts me that I'm...
Missing RVM environment file: '/home/tom/.rvm/environments/ruby-1.9.2-p180#rails3tutorial'
I need to uninstall ruby, install zlib via rvm install package zlib, then install ruby 1.9.2.
Can anyone give me a walk through. I'm completely new and utterly confused. I've searched the web but can't find a walk through that works.
run rm -rf /home/tom/.rvm/ That will delete RVM and all installed packages. Reinstall RVM using the instructions from this page https://rvm.io

Resources