Skip to content

Instantly share code, notes, and snippets.

@dedalqq
Last active November 25, 2015 20:44
Show Gist options
  • Save dedalqq/0fa97c2b63890d14d7f7 to your computer and use it in GitHub Desktop.
Save dedalqq/0fa97c2b63890d14d7f7 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir /tmp/bison
cd /tmp/bison
apt-get update
apt-get install -y build-essential m4
wget http://ftp.gnu.org/gnu/bison/bison-2.7.tar.gz
tar -xvf bison-2.7.tar.gz
rm bison-2.7.tar.gz
cd bison-2.7
./configure --prefix=/usr/local/bison --with-libiconv-prefix=/usr/local/libiconv/
make
make install
# mv /usr/bin/bison /usr/bin/bisonq
# mv /usr/bin/yacc /usr/bin/yaccq
ln -s /usr/local/bison/bin/bison /usr/bin/bison
ln -s /usr/local/bison/bin/yacc /usr/bin/yacc
#!/bin/bash
# ssl problev
# if
# configure: error: Cannot find OpenSSL's libraries
#
mkdir -p /usr/local/openssl/include/openssl/
ln -s /usr/include/openssl/evp.h /usr/local/openssl/include/openssl/evp.h
mkdir -p /usr/local/openssl/lib/
ln -s /usr/lib/x86_64-linux-gnu/libssl.a /usr/local/openssl/lib/libssl.a
ln -s /usr/lib/x86_64-linux-gnu/libssl.so /usr/local/openssl/lib/
# http://www.dahelp.ru/zametki/configure-error-cannot-find-openssls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment