Re: Can anybody get CPAN JavaScript libraries to build?
by jeffa (Bishop) on Jul 15, 2013 at 23:29 UTC
|
I had success with JavaScript 10 years ago: (jeffa) Re: Encrypt web files!. The only hint that i gave then was ensuring you had the right Javascript libs installed ...
For example, when i try to install JavaScript now, i see that Makefile.PL fails to create a makefile because the jsapi.h header is not found. Perhaps you don't have the necessary files installed ...
| [reply] [Watch: Dir/Any] [d/l] [select] |
Re: Can anybody get CPAN JavaScript libraries to build?
by tobyink (Canon) on Jul 16, 2013 at 06:38 UTC
|
I've successfully used JavaScript::SpiderMonkey and JE.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
| [reply] [Watch: Dir/Any] |
Re: Can anybody get CPAN JavaScript libraries to build?
by mtmcc (Hermit) on Jul 16, 2013 at 08:22 UTC
|
You might have a good point.
I've been trying for an hour or so, and this is as far as I can get, but no further.
Out of interest, did ~/.cpanm/build.log tell you anything?
Let me know if you figure it out, it's bugging me now!
-Michael | [reply] [Watch: Dir/Any] |
|
Yes, for JavaScript, I started out with errors about jsapi.h - which I found in the mozjs bits, which I then got into a path, but then it started not finding other headers, some of which appear to no longer exist.
It feels like SpiderMonkey has changed its API and JavaScript and JavaScript::SeaMonkey haven't been updated to follow allong.
my @a=qw(random brilliant braindead); print $a[rand(@a)];
| [reply] [Watch: Dir/Any] |
|
| [reply] [Watch: Dir/Any] |
|
|
I think you're probably right.
-Michael
| [reply] [Watch: Dir/Any] |
Re: Can anybody get CPAN JavaScript libraries to build?
by Anonymous Monk on Jul 15, 2013 at 23:18 UTC
|
I am running ubuntu raring and have had no shortage of trouble getting either one to install. Such as? Maybe you want to install an older version, one released the same time period as the perl module
| [reply] [Watch: Dir/Any] |
|
Such as?
Really? Such as not being able to install. I can tell you what I've tried. I know my installation isn't working. I'm more interested if other people have tried and actually succeeded. Which is why I asked if anybody has actually succeeded in installing.
In the case of V8, I've tried the native libraries that come with ubuntu (currently v8 3.8.9). I've worked with native checkouts of v8 codebase (v8 3.20.5), building them with gyp, and not ending up with any loadable objects (so that directly isn't a JavaScript::V8 issue). I've succeeded in installing Alien::V8 (v8 3.1.5). For the versions I have successfully installed when I then try and build JavaScript::V8 against it and then run tests I get the error listed in the bug that I filed in RT back in April (rt://84478). Around a year ago I got added to the JavaScript::V8 project and started to poke around, and was able to git-bisect when the errors began occuring. I have asked the authors but have heard nothing. The 0.06 version will build against current libraries, but has a terrible conversion bug (Unknown sv type in sv2v8) that was fixed long ago, but not released and is now combined with the other major (but broken) features of 0.07. At work, I had patched the JavaScript::V8 0.06 library 18 months ago to get around this bug and have used it very successfully in a production environment.
On the JavaScript and JavaScript::SpiderMonkey, I have tried various combinations of libraries available on recent ubuntu builds and have not come up with a working combination. I have spent less time on seamonkey and mozjs than with V8, but have come up with less of a working solution.
So again, my question - has anybody successfully installed a CPAN JavaScript library recently?
I am asking because it has been a broken mess for well over a year and doesn't appear to be getting better. If somebody has, awesome!!! I want to see how you did it. But if not, I'll use my already granted git repo access and backout changes in 0.07 to get back to a more working state from which we can make babysteps towards the more fully functional object support of 0.07.
my @a=qw(random brilliant braindead); print $a[rand(@a)];
| [reply] [Watch: Dir/Any] |
|
| [reply] [Watch: Dir/Any] |