How to install perl 5.10 from MinGW installation manager? - windows

When I try to build openssl on windows with msys.bat, ./configure mingw shared reports an error.
Perl v5.10.0 required--this is only v5.8.8, stopped at ./configure line 12.
The MinGW Installation Manager lists 5.8.8 as a repository version.
How can I get a more recent version of perl? I already installed strawberry perl, but I don't know if it's possible to connect it to msys.

There are a couple of things you could try:
Perl-MinGW project, which seems to be an update of perl for MinGW: https://sourceforge.net/projects/perl-mingw/?source=navbar
Or try to use MSYS2, which already uses a newer version of perl: https://www.msys2.org/

Related

MSYS2 specify version of mingw32 or mingw64 gcc

Is there a way to specify the GCC version i would like to install?
I only get the latest version if i install it that way:
pacman -S mingw-w64-x86_64-gcc
You can find a few older versions of GCC here:
http://repo.msys2.org/mingw/x86_64/
You can download them with wget and install them with pacman -U filename if I recall correctly. Note that using old packages in this way is a process prone to error because the packages might depend on older versions of their dependencies, which you would also have to install. Also, when you run pacman -Syu it would try to upgrade your GCC to the latest version.
You might be better off building the older versions of GCC yourself and installing them with a different name so they don't conflict with the MSYS2 packages.

How do I install the Perl DateTime module on Mac OSX 10.6

Ok, I know how to install Perl modules with cpan and have been doing it for years. But when I try to install the DateTime module on this particular mac, it fails, claiming that it cannot find a compiler.
Here is some of the output from attempting to install one of the prerequisites, Params::Validate: ( I get the same kinds of errors from attempting to install the module in question.)
Configuring Params-Validate-1.00
Running Build.PL
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
lipo: can't open input file: /var/tmp//cc3Aefez.out (No such file or directory)
Warning: ExtUtils::CBuilder not installed or no compiler detected
Proceeding with configuration, but compilation may fail during Build
Why is Build.PL looking for a ppc compiler? If that is the problem where do I tell it (or cpan, or cpanm) that this machine is not a ppc box?
I'm running 10.6.8. The version of perl is v5.10.0 built for darwin-thread-multi-2level
I most definitely have the Developer tools installed.
I'm running cpan and cpanm via sudo.
I'd be grateful for any assistance anyone can offer.
known problem with Xcode on Lion, Apple couldn't help messing around with nm, breaking Perl again (previously) and who knows what else
p5p discussion
perlbrew's info
You are on an unsupported Perl. Upgrade to stable.
I've got 10.7 installed which comes with Perl 5.12.3 installed. I did a CPAN install:
$ sudo cpan
password:
cpan> install DateTime
And, the whole thing works. Is this something you need for a third party file, or do you want to use this because you're familiar with this particular package?
There are several built in Time packages with Perl 5.10. Would one of these work for you? Otherwise, you might need to install ExtUtils::CBuilder and see if that helps.
Or, install a more modern version of Perl such as ActiveState which is pretty simple to install, its cpan utility works pretty good on a Mac, and it's version 5.14 which is even newer than the version that comes with Lion.
I think what's happening is that the installer is trying to compile something (possibly an XS module) and to do that it needs to use the same compiler that was used to compile whichever version of Perl is on your system, and it can't find it.
Your best bet would be to install your own version of Perl 5.10 using perlbrew as this gaurantees the compiler is available (make sure you edit your .profile so Terminal uses your new Perl), then re-open Terminal, switch to the perlbrew version of Perl 5.10 and you should be fine from then on.
If you have problems installing the perlbrew Perl then as daxim noted above refer to the Lion fix

What terminal library could be used in cygwin?

I am using Cygwin to compile Vim, but the configure script tells me that there is no terminal library in the Cygwin environment. Which terminal library could be installed in Cypwin?
You can install ncurses in Cygwin.
(You can also install vim; I presume you have a reason to build it from source rather than using the provided version.)
I just installed vim 7.3 under Cygwin. Here's what I did (approximately):
Download vim-7.3.tar.bz2
tar xf vim-7.3.tar.bz2
cd vim73
./configure --prefix=/path/to/installation/directory
make
make install

Windows - MINGW Build GSL for Ruby-GSL

Hi I am on windows 7 and wanted to install GSL http://www.gnu.org/software/gsl/ so that I can use it with Ruby GSL http://rb-gsl.rubyforge.org/.
I have MINGW and MSYS installed. I found a binary installer for GSL for version 1.13 here http://ascend4.org/Binary_installer_for_GSL-1.13_on_MinGW but since the latest version is 1.15 released the 6th May 2011 I thought it would be good to build it to install it but I don't how.
Can anyone tell me how to build it so it will install windows?
I modified the steps for installing the GNU Linear Programming Kit (GLPK) which has also has ruby wrapper, "rglpk".
http://en.wikibooks.org/wiki/GLPK/Ruby
Open
Run
cd /C/temp/gsl-1.14
./configure --enable-shared
make
make check
make install
cp include/gsl-config /C/Ruby193/include/ruby-1.9.1
cp src/.libs/libgsl.a /C/Ruby193/lib
gem install gsl
If that does not work, it might make more sense to install Ubuntu on Virtual Box and build your packages there.
https://www.virtualbox.org/
http://www.ubuntu.com/

How can I manually Installing DBD-Oracle 1.17 in ActivePerl on Windows?

After installing Active Perl 5.8.8 Build 822 on WindowsXP, I do not see DBD-Oracle in "View All Packages" of Perl Package Manager.
The CPAN location of the same is http://search.cpan.org/dist/DBD-Oracle-1.17/,
but I don't know the process to manually install this tar(DBD-Oracle-1.17.tar.gz) in ActivePerl.
Install Oracle Instant Client for Windows.
Do you really need to use ActivePerl 5.8.8 as the process is easier in 5.8.9.827 and above. Usually you just do:
cpan P/PY/PYTHIAN/DBD-Oracle-1.17.tar.gz
and if you don't have Microsoft Visual C on your path it downloads MinGW and installs it. I think if you are before 5.8.9 of ActivePerl you might have to install MinGW yourself with:
ppm install MinGW
but I think in 5.8.8 you will have to download, install and configure MinGW and dmake manually though, so you may not want to bother...
BTW, Do you really need to use DBD::Oracle 1.17? That is really old now. 1.26 is the latest.

Resources