SEric has asked for the wisdom of the Perl Monks concerning the following question:

Hi everyone,

I am newbie into Perl. I am trying to port Perl onto my machine which runs NetBSD OS. The procedure i am following is...

Firstly, took a Perl package which suits my OS version and placed under my 3rd party tools directory.

Then, looking forward to compile particular directory where Perl resides for any compatible issues. To do this, the Perl pkg has to be added into compilation environment by changing Makefile(.mk file) of 3rd party tools directory. Can anyone help me with what basis one has to change the makefile in order to compile Perl?

I also want to know how does one can make use of "Makefile.SH" file in Perl directory to one's requirement. The requirements like compilation, building etc.,

It is helpful if you refer any docs/links related to Perl porting.

I am glad if you could suggest me on right path.

Thanks in Advance,

SEric

Replies are listed 'Best First'.
Re: Porting Perl to Unix OS
by marto (Cardinal) on Nov 10, 2011 at 11:11 UTC

    Take a look at compiling Perl from source. The README file has an example for compling perl under a defined prefix:

    ./Configure -des -Dprefix=$HOME/localperl make test make install

    Much more in depth information can be found in the INSTALL file.

Re: Porting Perl to Unix OS
by Anonymous Monk on Nov 10, 2011 at 11:52 UTC

    Why? NetBSD already has Perl version 5.14.2 in its pkgsrc tree. The porting is all done already for you.

      On my NetBSD 3.0 their is no Perl package.

        On my NetBSD 3.0 their is no Perl package.

        I doubt that. The package is called lang/perl5, and has existed since 1997. The current 5.14 package may still support your old version -- I recently saw one frequently-updated package patching for a NetBSD <2.99 installation! And even if you cannot get the newest version of Perl, 5.8 is still pretty good to work with.

        Just an FYI, NetBSD 3.0 is from 2005 and is no longer supported.

      Dear Marto,

      If NetBSD 3.0 is no longer supported by Perl, does their any method to port Perl? Why because as of now i can't change my OS version(3.0) higher to suit Perl pkg.

      Thanks

        I didn't say it wasn't supported by Perl. NetBSD (The operating system itself) is no longer supported. Which is hardly surprising.

        NetBSD

        Update: Also, you didn't reply to me when posting this, you replied to another post.