- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Error while installing IO::TTY perl module
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2009 11:01 PM
тАО10-19-2009 11:01 PM
Error while installing IO::TTY perl module
IтАЩve been trying to install the IO-TTy-1.02 module on my HP-UX system.
The problem is when I run the Makefile.PL, this error is displayed.
ERROR: cannot run the configured compiler 'gcc'
(see conf/compilerok.log). Please fix this by adjusting perls Config.pm, creating a symlink to the right location or maybe by just adding it to your PATH. You could also build perl yourself.
When I run the perl тАУV:cc command the output it shows is тАЬcc=gccтАЭ.
After running the Makefile.PL this error is displayed in the log compilerok.log
sh: gcc: not found.
But then when I changed the location of CC (using the export command, export CC=/usr/bin/cc).
The log file showed this error
sh: mor: not found.
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 01:26 AM
тАО10-20-2009 01:26 AM
Re: Error while installing IO::TTY perl module
>CC=/usr/bin/cc
It isn't likely this will compile perl on PA.
>sh: mor: not found.
Have you looked for "mor"? I would expect this only on the terminal when you mistype more but not from perl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 01:48 AM
тАО10-20-2009 01:48 AM
Re: Error while installing IO::TTY perl module
The Architecture is PA-RISC, and OS is HP-UNIX 11.11.
Yes i tried looking for mor, but couldn't find it.
And there is no gcc aswell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 02:00 AM
тАО10-20-2009 02:00 AM
Re: Error while installing IO::TTY perl module
reinstall gcc and try.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 02:06 AM
тАО10-20-2009 02:06 AM
Re: Error while installing IO::TTY perl module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 02:10 AM
тАО10-20-2009 02:10 AM
Re: Error while installing IO::TTY perl module
Since its a compiler, i suppose it won't affect in anyway with the scripts that are already running?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 03:31 AM
тАО10-20-2009 03:31 AM
Re: Error while installing IO::TTY perl module
> About this GCC, does it depend on the perl version i'm using, or i can use gcc with any version of perl.
Since your Perl was compiled with 'gcc' you will "need" to use 'gcc' for any module compilation that is required when adding new modules. You were correct in assessing with 'perl -V:cc'.
> Since its a compiler, i suppose it won't affect in anyway with the scripts that are already running?
Correct.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 03:36 AM
тАО10-20-2009 03:36 AM
Re: Error while installing IO::TTY perl module
So according to you all, I should try re-installing the gcc?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 03:16 PM
тАО10-20-2009 03:16 PM
Re: Error while installing IO::TTY perl module
I thought you said you didn't have gcc? Or did you just not have it in your PATH?
If the former, you need to install gcc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 03:24 PM
тАО10-20-2009 03:24 PM
Re: Error while installing IO::TTY perl module
> Should the gcc be a problem because when installing other modules, such as net:ssh or net:telnet, i don't receive this error.
You're making a fallacious assumption, namely that all Perl modules require compilation. That is NOT true. Many modules do not need compilation.
Compilation will be required if the module contains files with files with a suffix of '.xs', '.c', '.h', '.y', '.cc', '.cxx', or '.C'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 10:20 PM
тАО10-20-2009 10:20 PM
Re: Error while installing IO::TTY perl module
I've installed gcc, but still I'm getting the same error.
sh :gcc not found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 11:44 PM
тАО10-20-2009 11:44 PM
Re: Error while installing IO::TTY perl module
Is gcc in your PATH?
If you are using a real shell, what does "whence gcc" show?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 01:12 AM
тАО10-21-2009 01:12 AM
Re: Error while installing IO::TTY perl module
So now how to set it in the PATH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 03:58 AM
тАО10-21-2009 03:58 AM
Re: Error while installing IO::TTY perl module
> whence gcc gives no output. So now how to set it in the PATH.
In all likelihood your 'gcc' has been installed in '/usr/local/bin' which isn't in your PATH. You can remedy this in your '${HOME}/.profile'.
In the '.profile' you should have a line like:
# PATH=/usr/sbin:$PATH:/sbin:/root
Add the 'gcc' path there, like:
# PATH=/usr/sbin:$PATH:/sbin:/usr/local/bin:/root
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 04:42 PM
тАО10-21-2009 04:42 PM
Re: Error while installing IO::TTY perl module
This is shell programming 101. If you don't know how to do this, you should be condemned to type in absolute paths. ;-)
In addition to what JRF said about $PATH, there is a file with all installed software and you might be able to use that file too:
PATH=$PATH:$(< /etc/PATH)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 08:15 PM
тАО10-21-2009 08:15 PM
Re: Error while installing IO::TTY perl module
I'll set the path and let you all know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 08:52 PM
тАО10-21-2009 08:52 PM
Re: Error while installing IO::TTY perl module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 01:08 AM
тАО10-22-2009 01:08 AM
Re: Error while installing IO::TTY perl module
/usr/lib/dld.sl: Bad magic number for shared library: /data/perl_modules/IO-Tty-1.08/blib/arch/auto/IO/Tty/Tty.sl
/usr/lib/dld.sl: Exec format error
This may indicate mixing 32 vs 64 bit?
Use "file /data/perl_modules/IO-Tty-1.08/blib/arch/auto/IO/Tty/Tty.sl" to check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2009 02:23 AM
тАО10-23-2009 02:23 AM
Re: Error while installing IO::TTY perl module
/data/perl_modules/IO-Tty-1.08/blib/arch/auto/IO/Tty/Tty.sl: ELF-64 shared object file - PA-RISC 2.0 (LP64)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2009 03:50 AM
тАО10-23-2009 03:50 AM
Re: Error while installing IO::TTY perl module
.../Tty.sl: ELF-64 shared object file - PA-RISC 2.0 (LP64)
Your original message:
/usr/lib/dld.sl: Bad magic number for shared library:
This is the 32 bit dld.sl.
The output from the shlib, shows it is a 64 bit shlib. And you can't mix and match.
So, what was the part you just built?
You would need to compile it in the other mode.
The URL I provided provides both 32 and 64 bit gcc compilers.
(For Integrity, only one is needed to do both.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2009 10:53 PM
тАО10-25-2009 10:53 PM
Re: Error while installing IO::TTY perl module
I did download the 64 bit build for gcc.
This is the file downloaded.
gcc-hppa64-4.4.0-1.depot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2009 02:33 AM
тАО10-26-2009 02:33 AM
Re: Error while installing IO::TTY perl module
What did you compile with it?
Your "make test" seemed to be using a 32 bit perl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2009 03:09 AM
тАО10-26-2009 03:09 AM
Re: Error while installing IO::TTY perl module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2009 03:25 AM
тАО10-26-2009 03:25 AM
Re: Error while installing IO::TTY perl module
You can use file(1) on an object file:
file foo.o
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2009 03:54 AM
тАО10-26-2009 03:54 AM
Re: Error while installing IO::TTY perl module
root@tpptcl01 # file efsbmp.o
efsbmp.o: PA-RISC1.1 relocatable object