![]()
I'll notify the DBD::Oracle guys about this as well. If you're not familiar with how patch works, just save that diff file in the same directoryas dbdimp.c. Here you need to create a directory named "hints" and create the file with this content: #!/usr/bin/perl$arch = "-arch i386 -arch ppc" print "Adding $archn" $self->. Download the latest DBI (version 1.52 at the moment), extract it and go to the DBI-1.52 directory. Download perl 5 10 mountain driver#We need universal DBI (DBD::Oracle is just a driver for DBI). The original perl binary is still universal and is not changed in any way.Ģ. Download perl 5 10 mountain install#Make and Install This is the procedure I used to compile Perl. Download perl 5 10 mountain mac os x#To do this type this command in Terminal: sudo lipo -thin ppc -output /usr/bin/perl.ppc /usr/bin/perl Perl in Mac OS X 10.4 is universal and the command simply copies it's PowerPC part to file perl.ppc. That should get you thesource code to the most recent version of Perl, which is currently 5.10.0.Download it, extract it somewhere, and open up a terminal. We need to create a PowerPC-only Perl binary. Nothing special happens here, but you never know.ġ. I assume that the Oracle instant client is already installed and works I used version 10.1.0.3. Here are step-by-step instructions showing how I made it work. So the idea is simple: run Perl through Rosetta when you have to deal with Oracle and everything should be fine. The problem for me was that I couldn't use those libraries with Perl: DBD::Oracle just wouldn't build properly, because by default gcc builds everything for Intel only, and this code cannot be linked with PowerPC libraries. It works through Rosetta though and if you just install the client as they say, you may use sqlplus and other PowerPC applications linked with that client this way. Unfortunately it's PowerPC only and nobody knows when they going to release an Intel or Universal version. Download perl 5 10 mountain for free#Way easier than attempting to downgrade your default installed Perl.Oracle has an "instant client" for Mac OS X and it's available for free from their site. You shebang in your Perl scripts should be: #! /usr/bin/env perl You're not necessarily running Perl under /usr/bin/perl anymore. This is useful if you want to store signed integers or 64-bit integers, for example. Perlbrew uses $PATH to set your Perl version, so you need to be careful with your shebang. As of perl 5.9.2, you can also use the > and < modifiers to force big- or little-endian byte-order. To install a particular version of Perl: $ perlbrew install 5.10 # I'm installing Perl 5.10! ![]() Or $ perlbrew switch 5.10 # This is now your default version of Perl To switch from one version of Perl to another, you use this command: $ perlbrew use 5.10 # Use this version in the current shell My default Perl is 5.16, so I've installed 5.18 to get the latest, 5.10, 5.12, and 5.8.9 to match as closely as possible the version of Perl we run on our RHEL servers. This is a great way to install multiple versions of Perl for testing purposes. You don't need root permission to use these various versions of Perl You can also run CPAN via Perlbrew to install modules in the various versions of Perl. Perlbrew will allow you to install multiple versions of Perl as user installed Perls. If you use Zsh or Kornshell, you need to munge the scripts a wee bit. It is Linux/Unix specific, and uses BASH. The easiest thing to do is install Perlbrew. Seems like version in repo is 0.14 and the latest is 0.24 (I've tried installing it manually, but it did not work and I in any case don't want to install manually for all the packages) Gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 Name=Extra Packages for Enterprise Linux 6 - $basearch So it's coming from epel and here's a corresponding section of repo file: Perl-Net-Amazon-EC2.noarch 0.14-2.el6 epel And then, even when I have already downloaded 98, I have to start from scratch. ![]() And with larger packages, it is almost impossible to download it all without a lull in the connection. This happens in particular when I try to install perl-Net-Amazon-EC2, here's what yum list shows: But this is just a workaround for not incorrect download resume. The installed perl version is 5.16.3, OS is Amazon Linux AMI release 2014.03, and I'd very much like to downgrade to perl 5.10.1 so that the compat issues are fixed. I'm running into lots of issues with perl modules requiring perl(:MODULE_COMPAT_5.10.1): Error: Package: 86_64 (epel)Įrror: Package: 86_64 (epel) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |