Tim Habersack

Tag: install

Library not found for -lssl error when trying to pip install things

Issues when trying to run pip install mysqlclient in OSX 10.12. I was getting:

ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1

Steps to fix:

* brew uninstall mysql
* brew install mysql-connector-c
* brew unlink mysql-connector-c
* brew install mysql
* xcode-select --install
* env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib"

I hope this helps someone else! 🙂

Installing/upgrading Firefox in a Linux environment

This is pretty simple, but I wanted to write up how to install/upgrade Firefox manually, in a Linux environment.

First thing that was tricky is, where is the “proper” place to install it? There is much debate on this point still, but I believe that installing to the /opt directory seems to make the most sense.

So we’ve downloaded the Firefox version we want to install:


It is sitting in a directory:


I open up a terminal and type:

[text]sudo tar -jxvf /home/tim/downloads/firefox-7.0.1.tar.bz2 -C /opt/[/text]

What is this command? Let’s break it down:

  • sudo – “The following commands we are going to run as super user”, necessary for putting things in the opt directory.
  • tar -jxvf – The tar program is what can compress and uncompress archives. We are using the options jxvf
    • j – the compression method that was used is bzip2
    • x – We are going to be extracting the archive.
    • v – We want the output to be verbose, so we’ll see every file extracted.
    • f – We are going to tell it the file to extract.
  • /home/tim/downloads/firefox-7.0.1.tar.bz2 – The full path to the Firefox archive we are going to be installing.
  • -C /opt/ – We want to specify the directory /opt/ as where it is going to be extracted to.

Then, bam Firefox should be extracted to the /opt/firefox directory. Then what do we need to do? Well, depending on your Linux distribution, you need to add a shortcut to that to your menu somewhere, so it’s easy to get to. The program the shortcut should point to is:


UPGRADE: For upgrading your Firefox install you have in the /opt/ dir, you do the exact same thing. 🙂

Now I don’t have to spend the 1 min remembering how to do this every time a new version of Firefox comes out. Hope it helps others.

Copyright © 2019 Tim Habersack

Theme by Anders NorenUp ↑