CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
IO::Ptty moule

 



gopisera
Novice

Mar 27, 2010, 3:57 PM

Post #1 of 9 (932 views)
IO::Ptty moule Can't Post

   

I have installed Net::Openssh. While running i am getting the error unable to find the module IO::Ptty.

The main aim of my program is to connect to another server through password;

Can we connect without this package. if so how???

Inoder to install this IO::Ptty package it is asking of C compiler. But in my system i doesn't have it.



For remaining modules while installing it doesn't ask for C compiler. For this it is asking.

Is there any chance to install the IO::Ptty package with out c compiler. if so can you give me the location of the file.



In the document of Net::Openssh it is said that IO::Ptty is optional. then why it is asking again i couldn't understan why again it has been asked.....



Can i connect without installing the C compiler. if i need to install C compiler can you give me any archives for it in solaris.

I prefer i doesn't want to install the c compiler. can you give me the IO::Ptty which doesn't depend on the C compilers.

I need a solution for this....





Thanks,

Ramesh G


rovf
Veteran

Mar 29, 2010, 5:54 AM

Post #2 of 9 (922 views)
Re: [gopisera] IO::Ptty moule [In reply to] Can't Post

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?

Ronald


gopisera
Novice

Mar 29, 2010, 6:33 AM

Post #3 of 9 (918 views)
Re: [rovf] IO::Ptty moule [In reply to] Can't Post

Sorry, it is IO::Pty module.

Inturn it is asking for IO::Tty module is there.

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.



Thanks,

Ramesh


rovf
Veteran

Mar 30, 2010, 1:40 AM

Post #4 of 9 (910 views)
Re: [gopisera] IO::Ptty moule [In reply to] Can't Post

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.

Ronald


gopisera
Novice

Mar 30, 2010, 5:24 AM

Post #5 of 9 (903 views)
Re: [rovf] IO::Ptty moule [In reply to] Can't Post

   

I have installed the gcc compiler in my solaris system. But while installing the IO::Pty inturn IO::Tty moudule it is not able to search the present C compiler.

It is saying that to change the settings of the Config.pm and then to run.

Even i have set the gcc in the environment variable also, I am getting the same issue.

Can you tell me how to set the path setting for it to run the IO::Tty module. We have to modify some of the path setting as per the requirement of the Config.pm.



Waiting for your reply,,,

Thanks a lot for giving the reply,

Thanks,

Ramesh G


rovf
Veteran

Mar 30, 2010, 5:35 AM

Post #6 of 9 (901 views)
Re: [gopisera] IO::Ptty moule [In reply to] Can't Post

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.


gopisera
Novice

Mar 30, 2010, 5:41 AM

Post #7 of 9 (900 views)
Re: [rovf] IO::Ptty moule [In reply to] Can't Post

Thanks for your quick reply,

Yeah, i have installed freshly gcc compiler also in some path. But i don't know how to use CPAN more effectively.

Presently, i am downloading the modules and following the steps in the Read me.

I am getting the error in such a way that to modify the setting in the Config.pm and then to proceed with the installation.

If possible provide me which environment variables as to be set up or to change in the config.pm.

otherwise i will follow your procedure.

Thanks once again.


rovf
Veteran

Mar 30, 2010, 7:20 AM

Post #8 of 9 (898 views)
Re: [gopisera] IO::Ptty moule [In reply to] Can't Post

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.


gopisera
Novice

Mar 30, 2010, 4:00 PM

Post #9 of 9 (891 views)
Re: [rovf] IO::Ptty moule [In reply to] Can't Post

Thanks a lot



Finally, i succeeded in installing the module of it through the help of gcc.

After surfing in google the below matter help me a lot to understand me

How to install perl modules........ :)


>>> 1. become root and use CPAN:
>>> su -
>>> perl -MCPAN -e "install Curses"
>>> #answer all of the questions, the defaults tend to be correct
>>>
>>> 2. become root and install manually
>>> su -
>>> gzip -dc module-version.tar.gz | tar xvf
>>> cd module-version
>>> perl Makefile.pl
>>> make
>>> make test
>>> make install
>>> #stop if at any step where you get errors
>>>
>>>
>>> 3. use CPAN as a normal user and set PERL5_LIB (or use the lib pragma)
>>> #like 1., but you should set PREFIX=/some/directory/you/countrol
>>> perl -MCPAN -e "install Curses"
>>> echo "export PERL5_LIB=/some/directory/you/countrol" >> .profile
>>>
>>> 4. install manually as a normal user and set PERL5_LIB (or use the
>>> lib pragma)
>>> gzip -dc module-version.tar.gz | tar xvf
>>> cd module-version
>>> perl Makefile.pl PREFIX=/some/directory/you/countrol
>>> make
>>> make test
>>> make install
>>> #stop if at any step where you get errors
>>> echo "export PERL5_LIB=/some/directory/you/countrol" >> .profile

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives