Package Details: phantomjs 2.1.1-13

Git Clone URL: https://aur.archlinux.org/phantomjs.git (read-only)
Package Base: phantomjs
Description: Headless WebKit with JavaScript API
Upstream URL: http://www.phantomjs.org/
Licenses: BSD, LGPL, MIT
Submitter: yan12125
Maintainer: ljmf00
Last Packager: yan12125
Votes: 17
Popularity: 0.051230
First Submitted: 2018-01-24 14:25
Last Updated: 2018-08-14 14:16

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.

  • Is there a prebuilt package?

A: The awesome Arch Linux CN team maintains one. You can enable it by appending the following section to /etc/pacman.conf:

[archlinuxcn]
Server = https://cdn.repo.archlinuxcn.org/$arch

And installing as if it were official packages:

sudo pacman -S phantomjs

Check out https://github.com/archlinuxcn/repo/blob/master/README.md for more details.

Latest Comments

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

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.

  • Is there a prebuilt package?

A: The awesome Arch Linux CN team maintains one. You can enable it by appending the following section to /etc/pacman.conf:

[archlinuxcn]
Server = https://cdn.repo.archlinuxcn.org/$arch

And installing as if it were official packages:

sudo pacman -S phantomjs

Check out https://github.com/archlinuxcn/repo/blob/master/README.md for more details.

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.

yan12125 commented on 2018-06-28 18:05

Is there a way to find out which packages are interfering?

No quick and simple way AFAIK. I used to diagnose such issues case-by-case, and finally I got tired and stick to clean chroot builds.

How can I do it? Please give some directions.

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.

karcher commented on 2018-06-28 15:08

"Either some packages on your machine interferes with the build (likely)" Is there a way to find out which packages are interfering?

"In general it's highly suggested to build phantomjs in clean chroots." How can I do it? Please give some directions.

yan12125 commented on 2018-06-28 06:44

@karcher: Just build it again on my machine with extra-x86_64-build and it works fine. Either some packages on your machine interferes with the build (likely), or there's a bug in aurman (unlikely). In general it's highly suggested to build phantomjs in clean chroots.

karcher commented on 2018-06-27 14:47

@yan12125: Do you mean the phantomjs folder in the AUR Helper cache?

I have namely deleted this folder and tried again. Now I'm getting this error:

...
Creating hashtable for parser/Keywords.table
python /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/create_regex_tables > generated/RegExpJitTables.h
Creating JIT stubs for jit/JITStubs.cpp 
python /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/KeywordLookupGenerator.py parser/Keywords.table > generated/KeywordLookup.h
ruby /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/offlineasm/asm.rb /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter.asm LLIntOffsetsExtractor generated/LLIntAssembly.h
python /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/itab.py disassembler/udis86/optable.xml --outputDir generated
offlineasm: Parsing /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter.asm and LLIntOffsetsExtractor and creating assembly file generated/LLIntAssembly.h.
Traceback (most recent call last):
  File "/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/itab.py", line 360, in <module>
    main()
  File "/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/itab.py", line 355, in main
    optableXmlParser.parse( args[ 0 ], generator.addInsnDef )
  File "/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/ud_optable.py", line 83, in parse
    fn( prefixes, mnemonic, opcodes, operands, vendor )
  File "/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/ud_opcode.py", line 217, in addInsnDef
    vendor=vendor)
  File "/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/ud_opcode.py", line 157, in __init__
    self.opcext[arg] = self.OpcExtMap[arg](val)
  File "/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/ud_opcode.py", line 120, in <lambda>
    '/m'     : lambda v: "%02x" % (int(v) / 32),
TypeError: %x format: an integer is required, not float
make[2]: *** [Makefile.JavaScriptCore.DerivedSources:706: generated/udis86_itab.c] Error 1
make[2]: *** Waiting for unfinished jobs....
offlineasm: Including file /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter64.asm
offlineasm: Including file /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm
offlineasm: Assembly file generated/LLIntAssembly.h successfully generated.
make[2]: Leaving directory '/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore'
make[1]: *** [Makefile.JavaScriptCore:70: sub-DerivedSources-pri-make_first-ordered] Error 2
make[1]: Leaving directory '/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore'
make: *** [Makefile:92: sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2

ERROR: Failed to build PhantomJS! Building Qt WebKit failed.
==> ERROR: A failure occurred in build().
    Aborting...
2018-06-27 16:39:46,658 - wrappers - makepkg - ERROR - makepkg query makepkg -cf --noconfirm failed