Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load node library libnode #4704

Closed
xiwasong opened this issue Apr 11, 2016 · 8 comments
Closed

Failed to load node library libnode #4704

xiwasong opened this issue Apr 11, 2016 · 8 comments

Comments

@xiwasong
Copy link

[root@localhost nwjs-v0.13.4-linux-ia32]# ./nw
Xlib: extension "RANDR" missing on display "localhost:11.0".
Xlib: extension "RANDR" missing on display "localhost:11.0".
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[6890:6890:0702/010617:ERROR:gl_surface_glx.cc(386)] GLX 1.3 or later is required.
[6890:6890:0702/010617:ERROR:gl_surface_x11.cc(62)] GLSurfaceGLX::InitializeOneOff failed.
[6890:6890:0702/010617:ERROR:gpu_child_thread.cc(260)] Exiting GPU process due to errors during initialization
[6907:6907:0702/010617:FATAL:renderer_main.cc(179)] Failed to load node library (error: libnode.so: 无法打开共享对象文件: 没有那个文件或目录)
#0 0x0000b1b2b1ca
#1 0x0000b1b46d4d
#2 0x0000b597000d
#3 0x0000b1af2479
#4 0x0000b1af29ac
#5 0x0000b1af3642
#6 0x0000b1af1fb2
#7 0x0000b150427a ChromeMain
#8 0x0000b76a47b8
#9 0x0000b0c12b73

@rogerwang
Copy link
Member

I cannot reproduce this. Is libnode.so there in your filesystem?

@xiwasong
Copy link
Author

when i copied nwjs's lib/libnode.so to /usr/lib,and then it was ok.

@rogerwang
Copy link
Member

It could some security measures in your system to prevent loading dynamic libraries from arbitrary path. Could you please check it?

@rogerwang
Copy link
Member

close until there is more information.

@fcasarsasolari
Copy link

Hello,

it seems that the downloaded tar contains unusual permissions 700 or 600 instead of more common 755 / 644.

After fixing permissions to root directory eg
chmod +r /runtimes/nwjs-v0.14.5-linux-ia32/
chmod 755 /runtimes/nwjs-v0.14.5-linux-ia32/locales/*
....

then for me it worked and it is possible also to call nw by not priviledged users.

@sparkleholic
Copy link

Is there any special reason that libraries (libnode.so, etc) have 700 permissions in the linux distribution ?

@PrakashK94
Copy link

Is there any other way using which we can launch NwJs application in linux from root? I mean to say something like updating the path of libnode.so in some environment variable?

It is working fine if we copy the libnode.so to /usr/lib.

@LinuxCao
Copy link

because current gcc version is too low
fixed solution :
#apt-get install gcc-5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants