Homebrew not installing? - homebrew

So, I've googled and googled and googled for months and can't find anyone else having this error. So, I'm going to ask here (even though my questions keep getting closed and deleted). This also happens when I try to use any of Homebrew's install commands. It also happens when I try to install git.
I went onto the Homebrew wiki and found this command:
mkdir homebrew && curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew
I got the following error:
dyld: Library not loaded: /usr/local/Cellar/openssl/1.0.1e/lib/libcrypto.1.0.0.dylib
Referenced from: /opt/local/lib/libssl.1.0.0.dylib
Reason: no suitable image found. Did find:
/usr/local/Cellar/openssl/1.0.1e/lib/libcrypto.1.0.0.dylib: stat() failed with errno=13
I ran this command:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
And got the exact same error.
I have XCode Command Line Tools installed, and have the latest version of XCode.
I need help with this because I wish to install Ninja-IDE on Mac.
Thanks! Any help is appreciated!

Well, I fixed this issue myself. I had to wipe my MacBook Pro, and then it worked. Good luck, and hope this helps anyone else who has had this issue!

Related

How can I install ddev/docker on an old, old Mac?

I am setuping ddev over my Mac OS 10.12.6 to access open source project. I am getting below error. I tried to find version which suit to this OS version but no luck. Can anyone help to fix this issue ? I am able to install docker-machine and docker compose.
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 6 formulae.
Warning: You are using macOS 10.12.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.
==> Installing ddev from drud/ddev
==> Downloading https://github.com/drud/ddev/archive/v1.17.2.tar.gz
Already downloaded: /Users/aviboy2006/Library/Caches/Homebrew/downloads/614bf0b8c7b32d6a364c18be4e0b7d95a4466f1e552ebd4a68dc967c9717950e--ddev-1.17.2.tar.gz
==> make VERSION=v1.17.2 COMMIT=v1.17.2
Last 15 lines from /Users/aviboy2006/Library/Logs/Homebrew/ddev/01.make:
COMMIT=v1.17.2
fatal: Not a git repository (or any of the parent directories): .git
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
/bin/bash: go: command not found
make: *** No rule to make target `_', needed by `build'. Stop.
Do not report this issue to Homebrew/brew or Homebrew/core!
Error: You are using macOS 10.12.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
Homebrew does not support your os version, so you'll need to use the he install_ddev.sh technique. See the script installation technique at https://ddev.readthedocs.io/en/stable/
I imagine you'll also find that docker desktop doesn't support your os version though.
To install via sh script. Can run below script :
curl -LO https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh && bash install_ddev.sh
Followup: #aviboy2006 posted a complete tutorial on how to do ddev/docker on an old Mac: https://www.internetkatta.com/installation-of-ddev-docker-and-virtual-box-on-mac-os-10126
when you get to that stage run
curl -LO https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh && bash install_ddev.sh
checkout the documentation on dudes website1https://ddev.readthedocs.io/en/stable/

GDAL: library not loasded libhdf5.100.dylib

I would like to run a GMT file wrote in tcsh environment. When I'm running it, I have the following error message :
dyld: Library not loaded: /opt/local/lib/libhdf5.100.dylib
Referenced from: /opt/local/lib/gmt4/bin/gmtset
Reason: image not found
I went to /opt/local/lib path, and indeed, libhdf5.103.dylib is installing, and not libhdf5.100.dylib. I did not find a way to reinstall libhdf5.100.dylib using port or brew.
The later doesn't work :
sudo port install libhdf5-100
sudo port install libhdf5.100
sudo port install libhdf5.100.dylib
I already try:
brew reinstall osgeo-gdal --build-from-source
But, this doesn't work. I have the following issue:
Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this old version.
qt: macOS Sierra or newer is required.
Error: An unsatisfied requirement failed this build.
Do you have any ideas?
Thank you.
Looks like gdal needs to be rebuilt with the current hdf5. You can try:
sudo port uninstall gdal && sudo port install -s gdal
This will build gdal from source and link against the installed HDF5 library.

Vapor Installation Issues (First time using Vapor) using Swift 5

After installing vapor i am getting below error
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/bin/vapor
Reason: image not found
Abort trap: 6
Here lies my issue, I have no idea how to solve that.even I am not able to create new project.
Please help.
I never faced with that issue but saw this tricky solution in some chat
ln -s /usr/local/opt/openssl/lib/libssl.1.1.dylib /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
ln -s /usr/local/opt/openssl/lib/libcrypto.1.1.dylib /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
or maybe libressl needed
brew install libressl
Have you tried ?
brew update && brew upgrade
brew install openssl

PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/pdo_sqlite.so' with Jenkins

I'm getting this warning when running the phpunit test suite in Jenkins pipeline.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/pdo_sqlite.so' - /usr/lib/php/20160303/pdo_sqlite.so: undefined symbol: sqlite3_column_table_name in Unknown on line 0
However this warning is not thrown when running the test suite directly in terminal.
I have PHP 7.1 in my system and this is the only PHP version I have installed. php7.1-sqlite3 is installed.
Thank you in advance.
As far as I have found out, there is a faulty file in /usr/local/lib called libsqlite3.so.0 which points to libsqlite3.so.0.8.6. I renamed the file in case it was needed for something. With the command:
cd /usr/local/lib
sudo mv libsqlite3.so.0 ./libsqlite3.so.0.back
But you can also delete it:
rm libsqlite3.so.0
The thread that lead me to the answer: link
This solved my problems, and I hope they solve yours as well :)
I had this same issue with PHP 7.1 on Ubuntu 16.04.
Running the following fixed the issue for me:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.1-sqlite3
Have you built SQLite from source? If yes, enable Column metadata and recompile with
CFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA=1" ./configure
make
sudo make install
Have fun using the cutting edge SQLite.
Reference - https://www.sqlite.org/compile.html#enable_column_metadata

GeoIP install failure, advice needed

Several hours of frustration here and looking to see if anyone has any advice.
I'm trying to install GeoIP vie Homebrew and receive the following error just prior to the install finishing:
"Error: The linking step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link geoip'"
brew link geoip returned this error:
"Error: Could not symlink file: /usr/local/Cellar/geoip/1.4.8/etc/GeoIP.conf.default
/usr/local/etc is not writable. You should change its permissions."
I also tried "sudo link geoip" and recieved this error:
"Cowardly refusing to `sudo brew link'"
I'm not entirely familiar with permissions and such and was wondering what I needed to do from the command line to get this to link properly. Any help greatly appreciated.
I think I found the answer. This script fixes the permissions issue:
ruby -e "$(curl -fsSL https://gist.github.com/raw/768518/fix_homebrew.rb)"

Resources