I don't know about Net::Openssh, but a simple search revealed the followin:

* On CPAN, Net::Openssh does NOT list IO::Ptty in its dependencies. This might be an indication that it could work without it, but I wouldn't bet on it - the dependency list shown on CPAN is not necessarily correct.

* I did NOT find a module named IO::Ptty on CPAN, so I don't know where you got it from. Whether it needs a compiled part, I can't tell (some modules give the user the choice in using either a (fast) compiled implementation, or a portable pure-Perl implementation).

But, is there a particular reason why you can't simply install a C compiler?

My aim is to connect from one solaris system to another solaris system.

So, for this we have to use Net::SSH, or Net::OpenSSH modules. I have downloaded the Net::OpenSSH module. In that for installation of this module the requirement of IO::Pty is optional.

The installation of Net::OpenSSH has completed successfully. But inorder to connect to another solaris system through this module Net::Openssh with password it is asking for IO::Pty module inturn IO::Tty module also.

For this module of installation IO::Tty i requires the installation of C compiler.

My solaris operating system version is 8.0. Which is very old and it doesn't contain c compiler or gcc.i am the user to that solaris operating system and i am not the owner[No admin privileges]. I have the privileges to only perl. So, for installation of C compiler on it i doesn't have rights. I can install the C compiler in my own accessable path. I don't know how to install the compiler or gcc compiler.

Can any one tell me how can i can get the gcc compiler and install the gcc compiler in solaris system in the comman line mode.

And to install the IO::Tty module the Config.pm module has to be changed or we have to set the gcc comiler path in the environmental variables. Can you please provide me how to set the path for those and to install the IO::Tty module successfully.

Indeed, IO::Tty needs to be compiled. Of course you don't need to be root to install a compiler; you can always install it locally into your home (and even an admin would probably first install new software locally to give it a try, before releasing it into /opt/...).

The problem is that the module needs to be compiled in a "compatible" way to Perl. This means that, if you compile the module with, say, gcc, but your Perl was compiled with a different compiler, or with a different version of the same compiler, it might be that they don't work together. Of course you can give it a try, but be prepared that in the end, you may have to create your own local Perl version too.

I assume that you install the module with the cpan shell. Using this shell, you can change some configuration variables, and perldoc Config shows you the meaning of variables. There are variables for specifying the C compiler, but as I wrote before, unless it is not only the same compiler, but also the same compilerversion, chances are high that your attempt will fail.

Better to use your gcc to build a new Perl from scratch and install it locally, and then compile the module. This way you shouldn't have any trouble.

Just start cpan and type help when you are on the cpan prompt. It will show you that you can query and change the configuration variables using the 'o' command. See my previous posting for a description what the configuration variables mean.

But, as I already repeatedly said, you wil probably end up building a new Perl anyway.