http://www.perlmonks.org?node_id=843430


in reply to Compiling Net::SSH::Perl

you have set the LD_LIBRARY_PATH (e.g export LD_LIBRARY_PATH="64/32 bit lib path).