From af4579f324c1d29e91d946a8f572db44cad6d60e Mon Sep 17 00:00:00 2001 From: Giovanni Grieco Date: Tue, 9 Sep 2014 13:39:01 +0200 Subject: [PATCH] Included MacPorts commands Included solution to build correctly telegram-cli if using MacPorts on OS X. Details: https://github.com/vysheng/tg/issues/237#issuecomment-54955961 --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8dee25d..49d45fd 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,9 @@ Then, #### Mac OS X -The client depends on [readline library](http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html) and [libconfig](http://www.hyperrealm.com/libconfig/), which are not included in OS X by default. You have to install these libraries manually, e.g. using [Homebrew](http://brew.sh/). +The client depends on [readline library](http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html) and [libconfig](http://www.hyperrealm.com/libconfig/), which are not included in OS X by default. You have to install these libraries manually. + +If using [Homebrew](http://brew.sh/): brew install libconfig brew install readline @@ -72,6 +74,14 @@ 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. +If using [MacPorts](https://www.macports.org): + + sudo port install libconfig-hr + sudo port install readline + sudo port install lua51 + export CFLAGS="-I/usr/local/include -I/opt/local/include" + export LDFLAGS="-L/usr/local/lib -L/opt/local/lib/" + ./configure && make Install these ports: