Welcome to WebProNews Breaking eBusiness and Search News
Advertise | Newsletter | Sitemap | News Feeds News Feed 
 WebProNews Search Part of the iEntry network iEntry inc. 

Device::SerialPort On Redhat 8

A.P. Lawrence
Expert Author
Published: 2003-06-02

WebProNews RSS Feed


The end of life for Redhat 6.2 security updates happened at the end of March. Because of this, I have been upgrading our remote buildings with Redhat 8. Since each building has a T1 router, I wrote a small program to log the routers messages to a text file.

While performing these upgrades, I ran into some small trouble with my code, which relies on the perl module: "Device::SerialPort". While attempting to install this, I ran into this error:

[root@domain Device-SerialPort-0.13]# perl Makefile.PL
Finding ioctl methods ...
trying 'termios.ph'... nope
trying 'asm/termios.ph'... nope
trying 'sys/termiox.ph'... nope
trying 'sys/termios.ph'... nope
trying 'sys/ttycom.ph'... nope
trying 'sys/modem.ph'... nope
Device::Serial could not find ioctl definitions!
Perl did not find any .ph files to get at least the following ioctls:

     TIOCMBIS
     TIOCMBIC
     TIOCMGET
     CRTSCTS

Please check your Perl installation, or read 'man h2ph'. As root, you may need to run:

cd /usr/include; h2ph -r -l .
before the Perl *.ph files will work.

So, I did what it told me to do: 'cd /usr/include; h2ph -r -l .' However, after trying to build Device::SerialPort again, it gave the same error. Time to google.

I came across a post: http://groups.google.com/groups?q=Device::SerialPort-0.13&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=ca0a1e8d.0211051327.3c5e28ad%40posting.google.com&rnum=2 Which started me in the right direction. Although this post didn't fix *my* problem, at least I was headed in the right direction. After a trial and error with the post, this method finally worked for me:

cd /usr/include/
h2ph asm/*.h
h2ph -r -l termios.h
h2ph -r -l asm/termios.h
h2ph -r -l sys/termios.h
h2ph -r -l sys/ttychars.h
h2ph asm/termbits.h
h2ph asm/ioctls.h
h2ph asm/termios.h

I had setup a machine last weekend using this, and I am currently configuring another machine for this weekend. Good thing for .bash_history, because I had no idea on which combination of using 'h2ph' worked for me.

This article appeared at APLawrence.com

Please read this disclaimer
Copyright and Reprint Info

Receive Our Daily Email of Breaking eBusiness News


About the Author:
A.P. Lawrence provides SCO Unix and Linux consulting services http://www.pcunix.com

WebProNews RSS Feed

More Articles

Contact WebProNews
Advertisement





TOP NEWS

Targeted Information for Business
WebProNews is part of the iEntry network

Internet Business: Marketing: Small Business:
WebProNews MarketingNewz SmallBusinessNewz
WebProWorld AdvertisingDay PromoteNews
EcommNewz SalesNewz EntrepreneurNewz

Software: Search Engines: Web Design:
WebMasterFree Jayde B2B DesignNewz
NetworkingFiles SearchZA FlashNewz
SecurityConfig SearchNewz WebSiteNotes

Developer: IT Management: Security:
DevWebPro ITManagement SecurityProNews
DevNewz SysAdminNews SecurityConfig
TheDevWeb NetworkingFiles NetworkNewz

The iEntry Network consists of over 100 web publications reaching millions of Internet Professionals. Contact us to advertise.
eBUSINESS RESOURCES






 Advertise | Contact Us | Corporate | Newsletter | Sitemap | Submit an Article | News Feeds
 WebProNews is an iEntry, Inc. ® publication - $line) { echo $line ; } ?> All Rights Reserved
About WebProNews
WebProNews is the number one source for eBusiness News. Over 5 million eBusiness professionals read WebProNews and other iEntry business and tech publications.

WebProNews provides real-time coverage of internet business.

Free Email Newsletters:
WebProNews SearchNewz
WebProWorld DevWebPro
Marketing SecurityNews
Plus over 100 other newsletters!

Send me relevant info on products and services.


WebProWorld
Ten most recent posts.

NetworkingFiles
Featured Software

WebProNews in the News
View all recent mentions of WebProNews from around the world!

Recent Articles On ...
Google eBusiness
Yahoo Ask Jeeves
MSN Blogs
Search Engines Blogging
Affiliate Programs Marketing
eCommerce Advertising
eBay Sun Microsystems
AOL Adsense
Microsoft Adwords
Oracle IBM
Amazon Apple
SEM Mac
SEO iPod
Adsense XBox
PR Adobe



iEntry.com WebProWorld RSS Feed WebProWorld Contact WebProNews Print Version Email a friend Bookmark us