From c373008400893f97ba0da4d8be93e66ab45f13b7 Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Thu, 27 Feb 2014 01:09:56 +0100 Subject: [PATCH] Clean up and merge Linux and BSD instructions * Now BSDs don't require setting environment for configure. * No default Makefile any more. --- README.md | 41 ++++++++++++----------------------------- 1 file changed, 12 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 4c8375d..748d6e3 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,15 @@ or download and extract zip $ wget https://github.com/vysheng/tg/archive/master.zip -O tg-master.zip $ unzip tg-master.zip && cd tg-master -#### Linux +#### Linux and BSDs + +Install libs: readline or libedit, openssl and (if you want to use config) libconfig and liblua. +If you do not want to use them pass options --disable-libconfig and --disable-liblua respectively. -Install libs: readline openssl and (if you want to use config) libconfig and liblua. -If you do not want to use them pass options --disable-libconfig and --disable-liblua respectively On ubuntu use: $ sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev + On gentoo: $ sudo emerge -av sys-libs/readline dev-libs/libconfig dev-libs/openssl dev-lang/lua @@ -34,7 +36,13 @@ On Fedora: $ sudo yum install lua-devel openssl-devel libconfig-devel readline-devel -Default Makefile uses liblua5.2 from ubuntu. If you use different version of liblua or linux you have to run ./configure script or you will get some strange compilation error. +On FreeBSD: + + $ pkg install libconfig libexecinfo lua52 + +On OpenBSD: + + $ pkg_add libconfig libexecinfo lua Then @@ -55,31 +63,6 @@ The client depends on [readline library](http://cnswww.cns.cwru.edu/php/chet/rea Thanks to [@jfontan](https://github.com/vysheng/tg/issues/3#issuecomment-28293731) for this solution. -#### FreeBSD - -Install these ports: - -* devel/libconfig -* devel/libexecinfo -* lang/lua52 - -Then build: - - $ env CC=clang CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure - $ make - -#### OpenBSD - -Install these packages (or *ports*): - -* libconfig (*devel/libconfig*) -* libexecinfo (*devel/libexecinfo*) -* lua >= 5.2 (*lang/lua/5.2*) - -Then build: - - $ CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure - $ make #### Other UNIX