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).