Results 1 to 5 of 5

Thread: Sencha/3.1.2.342/phantomjs/phantom/bin/phantomjs: error while loading shared librarie

  1. #1
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    56

    Default Sencha/3.1.2.342/phantomjs/phantom/bin/phantomjs: error while loading shared librarie

    slice:


    -before-slice:
    [echo] Capture theme image to /builds/wios-trunk/obj/timon/src/ui/theme-capture.png
    [x-sencha-command] Jul 23, 2013 12:17:36 PM com.sencha.logging.LoggerInfoStream doLog
    [x-sencha-command] INFO: [taskdef] Could not load definitions from resource com/sencha/ant/antlib.xml. It could not be found.
    [x-sencha-command] Jul 23, 2013 12:17:36 PM com.sencha.command.environment.AppOrPackageEnvironment$1 matches
    [x-sencha-command] INFO: Including theme package ext-theme-classic for app.theme=ext-theme-classic build
    [x-sencha-command] Jul 23, 2013 12:17:36 PM com.sencha.command.theme.ThemeCommands$CaptureCommand execute
    [x-sencha-command] Jul 23, 2013 12:17:36 PM com.sencha.command.theme.ThemeCommands$CaptureCommand execute
    [x-sencha-command] INFO: Capturing theme image
    [x-sencha-command] Jul 23, 2013 12:17:36 PM com.sencha.command.theme.ThemeCommands$CaptureCommand execute
    [x-sencha-command] INFO: /builds/opt/wios/Sencha/3.1.2.342/phantomjs/phantom/bin/phantomjs: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
    [x-sencha-command]
    [x-sencha-command] Jul 23, 2013 12:17:36 PM com.sencha.cli.Command dispatch
    [x-sencha-command] SEVERE: InvocationTargetException: null


    BUILD FAILED
    com.sencha.exceptions.ExProcess: phantomjs process exited with code 127
    at com.sencha.command.theme.ThemeCommands$CaptureCommand.execute(ThemeCommands.java:277)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
    at com.sencha.cli.Command.dispatch(Command.java:42)
    at com.sencha.cli.Commands.dispatch(Commands.java:62)
    at com.sencha.cli.Commands.dispatch(Commands.java:62)
    at com.sencha.command.Sencha.dispatch(Sencha.java:78)
    at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:131)
    at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:65)
    at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:29)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.Main.runBuild(Main.java:851)
    at org.apache.tools.ant.Main.startAnt(Main.java:235)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)


    Total time: 46 seconds


    BUILD FAILED
    /builds/wios-trunk/src/ui/build.xml:238: The following error occurred while executing this line:
    /builds/wios-trunk/src/ui/html5/simplifiedui/.sencha/app/build-impl.xml:480: com.sencha.exceptions.ExProcess: phantomjs process exited with code 127
    at com.sencha.command.theme.ThemeCommands$CaptureCommand.execute(ThemeCommands.java:277)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
    at com.sencha.cli.Command.dispatch(Command.java:42)
    at com.sencha.cli.Commands.dispatch(Commands.java:62)
    at com.sencha.cli.Commands.dispatch(Commands.java:62)
    at com.sencha.command.Sencha.dispatch(Sencha.java:78)
    at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:131)
    at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:65)
    at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:29)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.Main.runBuild(Main.java:851)
    at org.apache.tools.ant.Main.startAnt(Main.java:235)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)


    Total time: 46 seconds
    make: *** [/builds/wios-trunk/obj/timon/src/ui] Error 1

  2. #2
    Sencha Premium Member
    Join Date
    Nov 2012
    Location
    Bangalore
    Posts
    79

    Default fix

    To fix this issue we had to do apt-get install phantomjs and copied /usr/bin/phantomjs under Sencha/3.1.2.342/phantomjs/phantom/bin/

    Also if 'ruby --version' doesnot show 1.8, then update ruby symbolic link after the package installations
    So we have to update the symbolic link to explicitly point to /usr/bin/ruby1.8.

  3. #3
    Sencha Premium Member
    Join Date
    Nov 2012
    Location
    Bangalore
    Posts
    79

    Default

    Please let us know if this is issue in sencha cmd.

    This issue is found in linux machine with debian OS

  4. #4
    Sencha Premium Member
    Join Date
    Nov 2012
    Location
    Bangalore
    Posts
    79

    Default Ubuntu machine has issue

    phantomjs is found in ubuntu and not debian.

    Debian OS works fine... issue is in ubuntu

    [x-sencha-command] INFO: /builds/opt/wios/Sencha/3.1.2.342/phantomjs/phantom/bin/phantomjs: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

    So to fix the above issue for ubuntu machine we need to manually do
    apt-get install phantomjs and copy the binary under /Sencha/3.1.2.274/phantomjs/bin/

  5. #5

    Default

    i am facing this issue in windows 8 too ... i have replaced phantomjs exe in cmd path but in vain... Please suggest ..Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •