Skip to content

Instantly share code, notes, and snippets.

@sterpe
Last active October 10, 2016 21:15
Show Gist options
  • Save sterpe/163dad56266fc1483ab401048f370b50 to your computer and use it in GitHub Desktop.
Save sterpe/163dad56266fc1483ab401048f370b50 to your computer and use it in GitHub Desktop.
Compiling `irssi@` on OS X 10.11 El Capitan

Compile irssi-0.8.19 on OS X 10.11 w/Perl Support

Annotating this because it is such a pain.

My System:

  • OS X El Capitan (10.11.5)
  • Macbook Pro (15-inch, Early 2011)
  • 2 GHz Intel Core i7
  • 16 GB 1333 MHz DDR3
  • AMD Radeon HD 6490M 256 MB

You will need:

  • pkg-config-0.29.1
  • libffi-3.2.1
  • pcre-8.39
  • gettext-0.19.8
  • glib-2.48.1
  • openssl-1.0.2h
  • irssi-0.8.19

Steps

1. pkg-config-0.29.1

./configure --with-internal-glib
make && make install

2. libffi-3.2.1

# Remove any annoying configuration warning
ed ./configure
18728s/-directory/& 2>\/dev\/null
wq
./configure
make && make install

3. pcre-8.39

./configure --enable-utf --enable-unicode-properties
make && make install

4. gettext-0.19.8

./configure
make && make install

5. glib-2.48.1

./configure
make && make install

6. (Optional, reinstall pkg-config w/ glib-2.48.1)

cd pkg-config-0.29.1
make uninstall
make clean
./configure GLIB_CFLAGS="-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include" GLIB_LIBS="-L/usr/local/lib -lglib-2.0 -lintl"
make && make install

7. openssl-1.0.2h

./Configure darwin64-x86_64-cc
make depend
make && make install

8. irssi-0.8.19

export PKG_CONFIG_PATH=/usr/local/ssl/lib/pkgconfig
./configure ARCHFLAGS='-arch x86_64' LD_FLAGS='`pkg-config openssl --libs`' CPP_FLAGS='`pkg-config openssl --cflags`'
make ARCHFLAGS='-arch x86_64'
make install 

###9.

irssi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment