Chapter 10
A problem was encountered while attempting to compile and install your Inline
C code. The command that failed was:
  make > out.make 2>&1
The build directory was:
/home/sam/book/_Inline/build/inline_pl_8143
To debug the problem, cd to the build directory, and inspect the output files.
 at ./inline.pl line 2
By examining the out.make file in the build directory you can determine the 
exact cause of the compilation error.
Getting Started with Inline::C
Writing a module with Inline::C is a lot like writing an XS module with no XS. As 
such, you can get started with h2xs the same was as you would with a pure Perl 
module. To generate a skeleton for Gnome::MIME, I use the following command:
h2xs  XA  n Gnome::MIME
This creates the same files as you examined in Chapter 4 (for a quick refresher, see 
Table 10 1). Since I'm using Inline::C, all the C code for the module will go in 
MIME.pm alongside the Perl code.
Table 10 1. Files Generated by h2xs  XA  n Gnome::MIME
File
Description
MIME.pm
The module file itself, which contains Perl code, C code, and 
POD documentation
Makefile.PL
A script that uses ExtUtils::MakeMaker to generate a Makefile
test.pl
A test script run when a user types  make test  or installs your 
module with the CPAN module
README
A quick description of your module and how to install it
Changes
A change log in which you can describe differences between 
versions of your module
MANIFEST
A list of all the files in your distribution
240






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

web hosting perl

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved