How to compile lftp on OS X Leopard
I've recently been missing a few pieces of software from my linux days most recently, lftp. It wasn't as simple as I had hoped it would be so I thought I'd record how I did it here.
# Download and install readline
$ wget ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz # (or latest stable version)
...
$ tar zxvf readline-6.0.tar.gz
$ cd readline-6.0
$ ./configure --prefix=/usr/local
...
$ make
...
$ sudo make install
# Download lftp
$ wget http://ftp.yars.free.net/pub/source/lftp/lftp-3.7.15.tar.gz # (or latest stable version)
...
$ tar zxvf lftp-3.7.15.tar.gz
# Here comes the magic
$ CXXFLAGS="-O0 -Wall -fno-exceptions -fno-rtti -fno-implement-inlines" \
LDFLAGS="-Xlinker -search_paths_first -L/usr/local/lib" \
CPPFLAGS="-I/usr/local/include" \
./configure --with-openssl --disable-shared --disable-nls --prefix=/usr/local
...
$ make
...
$ make install
.. and that should be it. As I understand it, the 'magic' part tells the compiler to look in the right place for the readline library.
UPDATE: I suggest you now ignore this and use Homebrew where I have contributed an lftp recipe.
Posted on Fri 21st August 2009 by david
Edited on Fri 16th October 2009

On Sat 27th February 2010, AreniRer commented:
в итоге: спасибо... а82ч
On Sat 27th February 2010, X-fatrol commented:
Не очень люблю такие тексты %:(
On Tue 2nd March 2010, Kommunist commented:
В Вашей RSS нельзя получать полные тексты записей, что ли?
On Thu 4th March 2010, TamPrino commented:
Логотип мне нравится:)
On Sat 6th March 2010, Teen Orgasm Squirt commented:
well.. it's like I thought!
dog and obsessive licking girls and animals sex thumbs 2257 piss snot: cotton galitsin pantie pissing drunk tiny teen getting anal - college girls sex drunk picture of fat naked black woman fetish bbw her on the toilet peeing: how to pee in public cheap black peep toe heels: peep hole reverseal tool
On Sun 7th March 2010, HankMoody commented:
У Вас долго загружается блог - видимо, хостинг плоховат
On Mon 8th March 2010, Toxoic commented:
Об этом уже писал кто-то из моих ЖЖ-френдов :(
On Tue 9th March 2010, Faceroll commented:
Прошу прощения за оффтопик. Вы продаете сквозные ссылки с сайта? Если да, свяжитесь со мной, плз!
On Tue 9th March 2010, TedMosby commented:
На словах ты Лев Толстой, а не деле ... простой!