LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   issue building chromium from slackbuilds (https://www.linuxquestions.org/questions/slackware-14/issue-building-chromium-from-slackbuilds-885608/)

trademark91 06-10-2011 11:20 AM

issue building chromium from slackbuilds
 
every time i try to build chromium, i get the following error

Code:

  ACTION webcore_bindings_sources_XMLNames out/Release/obj/gen/webkit/XMLNames.cpp
  ACTION webcore_bindings_sources_tokenizer out/Release/obj/gen/webkit/tokenizer.cpp
  RULE webcore_bindings_sources_bison_0 out/Release/obj/gen/webkit/CSSGrammar.cpp
  RULE webcore_bindings_sources_bison_1 out/Release/obj/gen/webkit/XPathGrammar.cpp
  RULE webcore_bindings_sources_gperf_0 out/Release/obj/gen/webkit/DocTypeStrings.cpp
Can't locate Switch.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ../make-hash-tools.pl line 23.
BEGIN failed--compilation aborted at ../make-hash-tools.pl line 23.
make: *** [out/Release/obj/gen/webkit/DocTypeStrings.cpp] Error 2

im very confused as to what it is that is the problem, and hesitant to keep trying with minor changes, as it takes about an hour to build every time.

i did install the chrome-pam packages from /extra, but that hasnt solved anything...

has anyone encountered this issue, and if so, have you solved it? i really want to give chromium a try...

trademark91 06-10-2011 08:58 PM

ok i found the issue, thanks to my friends at ##slackware.

i am running -current, and that ships with perl version 5.14.0

in this latest version of perl, the Switch.pm module was removed, as there are now builtins to do its job.

chromium is not aware of this fact however, and looks for Switch.pm anyway, and wont build without it.

simply installing the module with cpan does the trick, or you could apply the patch here: http://pastebin.com/vCzYWYyA

just wanted to help out anyone else with this issue.

rmjohnso 06-11-2011 09:48 AM

Please mark your post as [SOLVED].

trademark91 06-12-2011 12:55 AM

i thought i did already. sorry, i guess a mod got it anyway though.

chytraeus 06-14-2011 06:07 PM

Quote:

Originally Posted by trademark91 (Post 4382368)
ok i found the issue, thanks to my friends at ##slackware.

i am running -current, and that ships with perl version 5.14.0

in this latest version of perl, the Switch.pm module was removed, as there are now builtins to do its job.

chromium is not aware of this fact however, and looks for Switch.pm anyway, and wont build without it.

simply installing the module with cpan does the trick, or you could apply the patch here: http://pastebin.com/vCzYWYyA

just wanted to help out anyone else with this issue.

Hi,
I'm also running current but x86. I'm getting a very similar error trying to build the latest webkit-gtk. My question is about your solution. Did you install Switch.pm with cpan or use the patch? I tried installing with cpan and the installation failed.

trademark91 06-14-2011 11:58 PM

It has to be force installed

chytraeus 06-15-2011 05:37 AM

Quote:

Originally Posted by trademark91 (Post 4385997)
It has to be force installed


Of course. That did the trick.

stormtracknole 07-24-2011 08:43 AM

Quote:

Originally Posted by trademark91 (Post 4382368)
ok i found the issue, thanks to my friends at ##slackware.

i am running -current, and that ships with perl version 5.14.0

in this latest version of perl, the Switch.pm module was removed, as there are now builtins to do its job.

chromium is not aware of this fact however, and looks for Switch.pm anyway, and wont build without it.

simply installing the module with cpan does the trick, or you could apply the patch here: http://pastebin.com/vCzYWYyA

just wanted to help out anyone else with this issue.

Sorry to bring this thread back. Your patch provided on your pastebin link does not work anymore. It seems that the link expired. Could your provide instructions on how you installed the Switch.pm module using cpan? I'm not familiar with perl modules. I did a google search, so I know how to get to the cpan terminal. However, I can't seem to find documentation on how to actually install Switch. Thanks ahead of time! :)


All times are GMT -5. The time now is 08:44 PM.