Package Details: phantomjs 2.1.1-14

Git Clone URL: https://aur.archlinux.org/phantomjs.git (read-only, click to copy)
Package Base: phantomjs
Description: Headless WebKit with JavaScript API
Upstream URL: http://www.phantomjs.org/
Licenses: BSD, LGPL, MIT
Submitter: yan12125
Maintainer: TheGoliath
Last Packager: TheGoliath
Votes: 19
Popularity: 0.033958
First Submitted: 2018-01-24 14:25
Last Updated: 2020-04-25 09:25

Pinned Comments

yan12125 commented on 2018-08-12 11:22

FAQ

  • error while loading shared libraries: libicui18n.so.61: cannot open shared object file: No such file or directory

You can either to reinstall this package afte upgrading the system to ICU 62, or install the prebuilt package listed below.

  • Building takes too long time!

A: PhantomJS ships with its own Qt and QtWebKit. Just be patient.

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

def commented on 2018-08-13 06:51

Fails with:

../../xml/dom/qdom.cpp:35:10: fatal error: qdom.h: No such file or directory
 #include <qdom.h>
          ^~~~~~~~
compilation terminated.

yan12125 commented on 2018-08-12 14:34

g++: fatal error: Killed signal terminated program cc1plus

Most likely that's due to insufficient memory. Adding a larger swap file should fix that.

stueja commented on 2018-08-12 14:31

Glad to hear that. ;) Unfortunately, though, I get an error in the 2nd hour of compiling phantomjs:

In file included from ../JavaScriptCore/parser/SourceCode.h:32,
                 from ../JavaScriptCore/runtime/Executable.h:39,
                 from ../JavaScriptCore/runtime/JSFunctionInlines.h:29,
                 from ../JavaScriptCore/runtime/Operations.h:28,
                 from bindings/js/JSDictionary.h:33,
                 from bindings/js/Dictionary.h:30,
                 from bindings/js/ArrayValue.cpp:29,
                 from bindings/js/JSBindingsAllInOne.cpp:28:
../JavaScriptCore/parser/SourceProvider.h: In member function ‘intptr_t JSC::SourceProvider::asID()’:
../JavaScriptCore/parser/SourceProvider.h:58:13: warning: nonnull argument ‘this’ compared to NULL [-Wnonnull-compare]
             if (!this) // Be defensive in release mode.
             ^~
{standard input}: Assembler messages:
{standard input}:203596: Warning: end of file not at end of a line; newline inserted
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [Makefile.WebCore.Target:137767: .obj/rendering/RenderingAllInOne.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/trizen-jan/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/WebCore'
make[1]: *** [Makefile.WebCore:68: sub-Target-pri-make_first-ordered] Error 2
make[1]: Leaving directory '/tmp/trizen-jan/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/WebCore'
make: *** [Makefile:178: sub-Source-WebCore-WebCore-pro-make_first-ordered] Error 2

ERROR: Failed to build PhantomJS! Building Qt WebKit failed.
==> ERROR: A failure occurred in build().
    Aborting...
:: Unable to build phantomjs - makepkg exited with code: 4

Anything I can do about that?

yan12125 commented on 2018-08-12 12:34

Whoops, was that there before my last comment? If so, sorry for the noise. :/

Nope :)

stueja commented on 2018-08-12 12:32

Whoops, was that there before my last comment? If so, sorry for the noise. :/

yan12125 commented on 2018-08-12 11:22

FAQ

  • error while loading shared libraries: libicui18n.so.61: cannot open shared object file: No such file or directory

You can either to reinstall this package afte upgrading the system to ICU 62, or install the prebuilt package listed below.

  • Building takes too long time!

A: PhantomJS ships with its own Qt and QtWebKit. Just be patient.

stueja commented on 2018-08-12 10:03

Getting error "phantomjs: error while loading shared libraries: libicui18n.so.61: cannot open shared object file: No such file or directory", because system updated to libicui18n.so.62. However, dependencies list icu equal or greater 61. How can I get phantomjs to work again?

karcher commented on 2018-06-29 12:31

@yan12125: I copied the icu59.patch into the same folder with PKGBUILD and rebuilt phantomjs. After some time it has finished without error and I could install the generated .xz package with pacman. I think it's OK now. Thanks!

yan12125 commented on 2018-06-29 12:09

@karcher: Of course icu59.patch is needed to build phantomjs. You can find that file from the git repo of this package - https://aur.archlinux.org/phantomjs.git.

karcher commented on 2018-06-29 10:26

"TL;DR - sudo pacman -S devtools and run extra-x86_64-build in the folder containing PKGBUILD. This command creates the installable pkg.tar.xz file. See https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot for detailed explanations."

I tried the way you mentioned following the Arch Wiki as well as with clean-chroot-manager. Both of them result in the same same error (icu59.patch):

$ sudo ccm64 s
[sudo] password for user: 
----> Attempting to build package...
==> Synchronizing chroot copy [/chroot/.chroot64/root] -> [user]...done
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
 there is nothing to do
==> Making package: phantomjs 2.1.1-11 (Fri Jun 29 12:19:45 2018)
==> Retrieving sources...
  -> Cloning phantomjs git repo...
Cloning into bare repository '/home/user/chroot/root/home/phantomjs/phantomjs'...
remote: Counting objects: 81329, done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 81329 (delta 83), reused 145 (delta 69), pack-reused 81156
Receiving objects: 100% (81329/81329), 173.09 MiB | 3.64 MiB/s, done.
Resolving deltas: 100% (37607/37607), done.
==> ERROR: icu59.patch was not found in the build directory and is not a URL.
==> ERROR: Could not download sources.