September 21, 2004

Getting Net::SSH working on the mac..

Everything will go smoothly until you hit

 Crypt::Random 
Then you need pari.. That requires readline.. Readline doesn't work without doing the following..
  % tar zxvf readline-4.3.tar.gz
  % cd readline-4.3
  % perl -i.bak -p -e \
     "s/SHLIB_LIBS=.*/SHLIB_LIBS='-lSystem -lncurses -lcc_dynamic'/g" \
     support/shobj-conf
  % ./configure
  % make
  % make install

Thanks to this link for the advice..

Additionally this appears to work but if you look at the end of the make file you will see things like this.. This will bite you in the butt later - I promise..

ld: warning multiple definitions of symbol _PC
terminal.so definition of _PC in section (__DATA,__common)
/usr/lib/libncurses.dylib(lib_tputs.o) definition of _PC
ld: warning multiple definitions of symbol _BC
terminal.so definition of _BC in section (__DATA,__common)
/usr/lib/libncurses.dylib(lib_termcap.o) definition of _BC
ld: warning multiple definitions of symbol _UP
terminal.so definition of _UP in section (__DATA,__common)
/usr/lib/libncurses.dylib(lib_termcap.o) definition of _UP

Now to fix this edit terminal.c line 87 from

char PC, *BC, *UP;
to
extern char PC, *BC, *UP;

Now it compiles normal. Better yet it works..

Now onto Pari..

Posted by Steven at September 21, 2004 12:37 AM | TrackBack