im update libcurl and now when update my server show this message:
[root#server ~]# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
libnghttp2.so.14: cannot open shared object file: No such file or directory
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Aug 18 2016, 15:13:37)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
how can fix this?, i tried upgrading YUM via RPM But it does not work, on a post found what i need update Python to 2.7, how can resolve this?, thanks
this is my yum.log:
[root#server ~]# tail -n 10 /var/log/yum.log
Nov 15 04:12:37 Updated: ea-php55-php-gd-5.5.38-39.39.13.cpanel.x86_64
Nov 15 04:12:38 Updated: ea-php55-php-calendar-5.5.38-39.39.13.cpanel.x86_64
Nov 15 04:12:43 Updated: cpanel-wordpress-instance-manager-plugin-2.0.1-1.1.1.cpanel.noarch
Nov 20 13:04:28 Installed: epel-release-6-8.noarch
Nov 20 13:20:36 Updated: libssh2-1.8.0-8.0.cf.rhel6.x86_64
Nov 20 13:20:36 Installed: c-ares-1.15.0-1.0.cf.rhel6.x86_64
Nov 20 13:20:36 Updated: libcurl-7.62.0-1.0.cf.rhel6.x86_64
Nov 20 13:20:37 Installed: libmetalink-0.1.3-7.rhel6.x86_64
Nov 20 13:20:37 Updated: curl-7.62.0-1.0.cf.rhel6.x86_64
Nov 20 13:20:38 Updated: libssh2-devel-1.8.0-8.0.cf.rhel6.x86_64
this is my "locate" result of libnghttp2.so.14 when i tried search:
[root#server ~]# locate libnghttp2.so.14
/opt/cpanel/nghttp2/lib/libnghttp2.so.14
/opt/cpanel/nghttp2/lib/libnghttp2.so.14.16.2
Related
I just install Nginx on Oracle linux and working with it as reverse proxy.
it's wroking as I wanted.
now I want to add this moudle:
ngx_http_v2_module
how do I do this ?
where is the config file ?
everywhere I looked they say
his module is not built by default, it should be enabled with the --with-http_v2_module configuration parameter.
but I don't see any example of how to do it ....
when I enter
/usr/share/nginx/moudles/
I see this files only :
-rw-r--r--. 1 root root 65 Mar 30 2018 mod-http-geoip.conf
-rw-r--r--. 1 root root 72 Mar 30 2018 mod-http-image-filter.conf
-rw-r--r--. 1 root root 64 Mar 30 2018 mod-http-perl.conf
-rw-r--r--. 1 root root 71 Mar 30 2018 mod-http-xslt-filter.conf
-rw-r--r--. 1 root root 59 Mar 30 2018 mod-mail.conf
-rw-r--r--. 1 root root 61 Mar 30 2018 mod-stream.conf
so do I need to download something ? and put it in this directory ?
also
with this module I could push image to user?
meaning he will go the websites and will see my image\icon in his webpage?
or do I need another module ?
Thanks,
Assuming this is about Oracle Linux 7, Oracle provides nginx in two channels:
EPEL packages for Oracle Linux 7 (ol7_developer_EPEL)
# yum info nginx
Loaded plugins: langpacks, ulninfo
Installed Packages
Name : nginx
Arch : x86_64
Epoch : 1
Version : 1.12.2
Release : 2.el7
Size : 1.5 M
Repo : installed
From repo : ol7_developer_EPEL
Summary : A high performance web server and reverse proxy server
URL : http://nginx.org/
License : BSD
Description : Nginx is a web server and a reverse proxy server for HTTP, SMTP, POP3 and
: IMAP protocols, with a strong focus on high concurrency, performance and low
: memory usage.
and it is compiled with the http2 module:
# /usr/sbin/nginx -V 2>&1 | sed -e 's/--with/\n\0/g' | grep http_v2
--with-http_v2_module
Alternatively there is also a version in the Software Collection Library (ol7_software_collections)
# yum info rh-nginx114
Loaded plugins: langpacks, ulninfo
Installed Packages
Name : rh-nginx114
Arch : x86_64
Version : 1.14
Release : 6.el7
Size : 0.0
Repo : installed
From repo : ol7_software_collections
Summary : Package that installs rh-nginx114
License : GPLv2+
Description : This is the main package for rh-nginx114 Software Collection.
where we also have support for http2:
# /opt/rh/rh-nginx114/root/usr/sbin/nginx -V 2>&1 | sed -e 's/--with/\n\0/g' | grep http_v2
--with-http_v2_module
So basically whatever version you have installed, you should be covered.
For the configuration of this module, you should look at the upstream NGINX documentation.
I developed a C++ application that among others use SDL2.
It compiles and run on Ubuntu 18.04 (64 bit machine) and on OSX.
When I try to compile the application on a computer on chip running Ubuntu Mate 18.04 in a 32 bits machine with the libraries compiled by me, it returns an exception.
The exception is happening inside the line SDL_Init( SDL_INIT_VIDEO ) and the message is the following:
dbus[3856]: arguments to dbus_message_new_method_call were incorrect, assertion "path != NULL" failed in file ../../../dbus/dbus-message.c ine 1362.
This is normally a bug in some application using D-Bus library.
D-Bus not built with -rdynamic so unable to print backtrace.
Aborted
It seems a problem happening on Ubuntu running on a 32 bit machine. Have anyone had the same problem?
How can I solve this problem? Or does anyone know what is generating it?
NOTE 1
Running in gdb and using backtrace as suggested:
#0 0xb613d206 in __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:47
#1 0xb614ab32 in __libc_signal_restore_set (set=0xbeffe3a4) at ../sysdeps/unix/sysv/linux/nptl-signals.h:80
#2 0xb614ab32 in __GI_raise (sig=sig#entry=6) at ../sysdeps/unix/sysv/linux/raise.c:48
#3 0xb614b82e in __GI_abort () at abort.c:79
#4 0xb2adddf0 in _dbus_abort () at /lib/arm-linux-gnueabihf/libdbus-1.so.3
#5 0xb2ad7c5a in _dbus_warn_check_failed () at /lib/arm-linux-gnueabihf/libdbus-1.so.3
#6 0xb2ad8104 in _dbus_warn_return_if_fail () at /lib/arm-linux-gnueabihf/libdbus-1.so.3
#7 0xb2acce80 in dbus_message_new_method_call () at /lib/arm-linux-gnueabihf/libdbus-1.so.3
#8 0xb68acdba in () at /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0
NOTE 2
The same happens if I install SDL from the repository instead of building it.
I found a partial solution so anybody with a better one would be welcome.
As #Keltar suggested in the comment I debugged it with gdb and backtrace as already said in the question. The last line of backtrace got me suspicious:
#8 0xb68acdba in () at /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0
which suggested it is not taking the library built by me but the one installed with apt. I checked all the paths in Makefile and everything was pointing to my custom built. So I checked the dynamic library files *.so and I found the situation was the following:
drwxr-xr-x 3 odroid odroid 4096 Oct 15 12:21 cmake
lrwxrwxrwx 1 odroid odroid 17 Oct 15 12:21 libSDL2-2.0d.so -> libSDL2-2.0d.so.0
lrwxrwxrwx 1 odroid odroid 21 Oct 15 12:21 libSDL2-2.0d.so.0 -> libSDL2-2.0d.so.0.8.0
-rw-r--r-- 1 odroid odroid 4317020 Oct 15 12:21 libSDL2-2.0d.so.0.8.0
lrwxrwxrwx 1 odroid odroid 15 Oct 15 12:40 libSDL2-2.0.so -> libSDL2-2.0d.so
-rw-r--r-- 1 odroid odroid 7593354 Oct 15 12:21 libSDL2d.a
-rw-r--r-- 1 odroid odroid 4754 Oct 15 12:19 libSDL2maind.a
lrwxrwxrwx 1 odroid odroid 14 Oct 15 13:38 libSDL2.so -> libSDL2-2.0.so
drwxr-xr-x 2 odroid odroid 4096 Oct 15 12:21 pkgconfig
Note that for the symbolic link file libSDL2.so -> libSDL2-2.0.so, the linked file libSDL2-2.0.so was not created.
My solution was to rebuild the library in Release mode instead of Debug using cmake -DCMAKE_BUILD_TYPE=Release: in that way all the files library are correct. Another solution might be to symlink the file(s) manually but is is easy to mess up something.
So it seems a bug in how SDL cmake write the instructions for the Debug build type because in release mode my program run.
If anyone has a better solution or find any error that I could not find please let me know.
I want to install groovy on a unix server and test functionality. I used manual instructions from the following link:
https://itekblog.com/centos-groovy-installation-tutorial-newbs-centos-6-x/
I think the java jdk is installed, but im not certain since I didnt do it myself. I base my opinion on the following commands(i edited output with xxxs to obfuscate info):
[root#xxx groovy]# which java
/opt/xxx/xxx/bin/java
and
[root#xxx bin]# ll
total 48
lrwxrwxrwx. 1 root jdk8 29 Aug 10 2017 jar ->
/opt/xxx/jdk8/current/bin/jar
lrwxrwxrwx. 1 root jdk8 30 Aug 10 2017 java ->
/opt/xxx/jdk8/current/bin/java
lrwxrwxrwx. 1 root jdk8 29 Aug 10 2017 jps ->
/opt/xxx/jdk8/current/bin/jps
lrwxrwxrwx. 1 root jdk8 32 Aug 10 2017 jstack ->
/opt/xxx/jdk8/current/bin/jstack
lrwxrwxrwx. 1 root jdk8 31 Aug 10 2017 jstat ->
/opt/xxx/jdk8/current/bin/jstat
lrwxrwxrwx. 1 root jdk8 33 Aug 10 2017 keytool ->
/opt/xxx/jdk8/current/bin/keytool
Here is my bash_profile:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export GROOVY_HOME=/usr/groovy/groovy-2.5.1
PATH=$PATH:$HOME/bin:$GROOVY_HOME/bin
export PATH
I "reloaded" my profile:
source ~/.bash_profile
Here is what happens when I try to "run" groovy:
[root#lhost-cl2 groovy]# groovy -e 'println("Hello, World!")'
Exception in thread "main" java.lang.ClassFormatError:
org.codehaus.groovy.tools.GroovyStarter (unrecognized class file version)
at java.lang.VMClassLoader.defineClass(libgcj.so.10)
at java.lang.ClassLoader.defineClass(libgcj.so.10)
at java.security.SecureClassLoader.defineClass(libgcj.so.10)
at java.net.URLClassLoader.findClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at gnu.java.lang.MainThread.run(libgcj.so.10)
Suggestions?
There were two versions of java installed on the server. The older version, not compatible with groovy, was being referenced. I updated the path and its happy now.
I am looking for the command to invoke RStudio from Linux. I VNC into the linux system and don't see any other option to launch RStudio from the gnome-terminal. I know R files can be directly read in the terminal, but I searched and couldn't find any command to invoke RStudio.
Are you referring to the RStudio desktop version, or the server instance? The former is started by just calling rstudio:
edd#rob:~$ type -p rstudio
/usr/bin/rstudio
edd#rob:~$
The latter is always running and started as system process:
edd#rob:~$ systemctl status rstudio-server
● rstudio-server.service - RStudio Server
Loaded: loaded (/etc/systemd/system/rstudio-server.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2018-07-15 20:12:01 CDT; 1 weeks 1 days ago
Main PID: 1665 (rserver)
Tasks: 3 (limit: 4915)
CGroup: /system.slice/rstudio-server.service
└─1665 /usr/lib/rstudio-server/bin/rserver
Jul 15 20:12:00 rob systemd[1]: Starting RStudio Server...
Jul 15 20:12:01 rob systemd[1]: Started RStudio Server.
edd#rob:~$
If you want to access the latter you do not need VNC. Just point your browser at port 8787 on that machine.
Have you tried to launch it from here ?
/usr/bin/rstudio
PS : You need R to be installed on the system too.
On Arch the command is
rstudio-bin
I am getting the below error-:
[ 698.855708] cloud-init[1158]: 2017-10-09 23:48:42,438 - util.py[WARNING]: Broken config drive: /dev/sr0
I am trying to run the cloud-init during boot of VM and to take the iso from cdrom. Its a centos m/c.
Also this error-:
Also this error-:[ 846.922986] cloud-init[1158]: 2017-10-09 23:51:10,627 - DataSourceEc2.py[CRITICAL]: Giving up on md from ['http://169.254.169.254/2009-04-04/meta-data/instance-id'] after 125 seconds
[ 847.834620] cloud-init[1158]: 2017-10-09 23:51:10,912 - util.py[WARNING]: Getting data from failed
[ 995.764648] cloud-init[3092]: Cloud-init v. 0.7.5 running 'modules:config' at Tue, 10 Oct 2017 03:53:12 +0000. Up 969.10 seconds.
[ 1080.429808] cloud-init[3507]: Cloud-init v. 0.7.5 running 'modules:final' at Tue, 10 Oct 2017 03:54:49 +0000. Up 1065.33 seconds.
ci-info: no authorized ssh keys fingerprints found for user centos.
PLease suggest.
Above error most likely appears when you have malformed meta_data.json or wrong parameter(s) defined in meta_data.json
See error checking test in cloud-init source:
https://github.com/racker/cloud-init-debian-pkg/blob/409f73b8434717b6a2f0353c605399dde35d1f66/tests/unittests/test_datasource/test_configdrive.py
Check out the test test_seed_dir_bad_json_metadata().