I'm installing php oAuth in my Ubuntu 12.04 on PHP 5.6. I tried the following commands
apt-get update
apt-get install libpcre3 libpcre3-dev
apt-get install php5-oauth
I'm getting this error :
php5-oauth : Depends: phpapi-20121212
Also tried with pecl
pecl install oauth
pecl/oauth is already installed and is the same as the released version 1.2.3
install failed
I added extension=oauth.so in php.ini file and restarted Apache also.
I tried this command pecl list
Installed packages, channel pecl.php.net:
=========================================
Package Version State
mongo 1.1.4 stable
oauth 1.2.3 stable
It shows oauth is installed but it not showing oAuth in php info file.
Related
HTTP module installation is failing on Ubuntu with following error:
root#someserver:/var/log# luarocks install http
Warning: falling back to wget - install luasec to get native HTTPS support
Installing https://luarocks.org/http-0.4-0.all.rock
Missing dependencies for http 0.4-0:
cqueues >= 20161214 (not installed)
luaossl >= 20161208 (not installed)
basexx >= 0.2.0 (not installed)
binaryheap >= 0.3 (not installed)
fifo (not installed)
http 0.4-0 depends on cqueues >= 20161214 (not installed)
Installing https://luarocks.org/cqueues-20200726.51-0.src.rock
Error: Failed installing dependency: https://luarocks.org/cqueues-20200726.51-0.src.rock - Could not find header file for CRYPTO
No file openssl/crypto.h in /usr/local/include
No file openssl/crypto.h in /usr/include
You may have to install CRYPTO in your system and/or pass CRYPTO_DIR or CRYPTO_INCDIR to the luarocks command.
Example: luarocks install cqueues CRYPTO_DIR=/usr/local
Any tips?
Seems OpenSSL isn't installed in your system. So try running:
sudo apt-get install libssl-dev
I am installing Kong-OIDC plugin in a Kong docker container and get following error:
Error: Failed installing dependency: https://luarocks.org/lua-resty-openidc-1.6.0-1.src.rock - Failed installing dependency: https://luarocks.org/lua-resty-jwt-0.2.2-0.src.rock - Rockspec format 3.0 is not supported, please upgrade LuaRocks.
Seems like one of the underlying dependency "lua-jesty-jwt" is using Rockpsec format 3.0 version, which is not supported any more. Is there a way to get around this issue ?
I updated the Dockerfile with a previous version of the kong-oidc plugin. The Dockerfile looks like this:
FROM kong:0.14-centos
LABEL description="Centos 7 + Kong 0.14 + kong-oidc plugin"
RUN yum install -y git unzip && yum clean all
RUN luarocks install kong-oidc 1.0.1
But running docker build -t kong:0.14-centos-oidc returns this error:
Error: Failed installing dependency: https://luarocks.org/lua-resty-openidc-1.2.3-1.src.rock - Failed installing dependency: https://luarocks.org/lua-resty-hmac-v1.0-1.rockspec - Failed installing dependency: https://luarocks.org/luacrypto-0.3.2-2.src.rock - Could not find header file for OPENSSL
No file openssl/evp.h in /usr/local/include
No file openssl/evp.h in /usr/include
You may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command.
Example: luarocks install luacrypto OPENSSL_DIR=/usr/local
So we need to add RUN yum install openssl-devel -y to the Dockerfile. So, if you run again the docker build command, you'll get this error:
Build error: Failed compiling object src/lcrypto.oError: Failed installing dependency: https://luarocks.org/lua-resty-openidc-1.2.3-1.src.rock - Failed installing dependency: https://luarocks.org/lua-resty-hmac-v1.0-1.rockspec - Failed installing dependency: https://luarocks.org/luacrypto-0.3.2-2.src.rock - Build error: Failed compiling object src/lcrypto.o
So we need to install the gcc compiler adding RUN yum install -y gcc to the Dockerfile. The final result is:
FROM kong:0.14-centos
LABEL description="Centos 7 + Kong 0.14 + kong-oidc plugin"
RUN yum install -y git unzip && yum clean all
RUN yum install -y openssl-devel -y
RUN yum install -y gcc
RUN luarocks install kong-oidc 1.0.1
Now the container builds successfully, but I think the current kong-oidc plugin is not maintained anymore.
UPDATE: Check this repository to get a working example of the kong-oidc plugin with Keycloak.
The latest version of kong-oidc (1.1.0) did not work for me, but I was able to install an older version (1.0.1) without much issue. I did have to install an additional library "openssl-devel" (yum install openssl-devel).
Hi I'm trying to install docker in my Debian 10 computer and I have a few problems trying to install containerd.io service.
When I'm trying to install using this command I got an error that I need to upgrade a dependency. But If I try to upgrade manually terminal shows me an advice that I'm already using the last version of this package.
sudo apt-get install docker-ce docker-ce-cli containerd.io
Also I tried to follow this tutorial, but it is not compatible with my debian version
docker-ce : Depends: libseccomp2 (>= 2.3.0) but 2.2.3-3ubuntu3 is to be installed
Depends: libseccomp2 (>= 2.4.0) but 2.3.3-4 is to be installed
I had the same error. I made the wrong Linux distribution. I had chosen Ubuntu instead of Debian. I had to delete the lines with ubuntu in nano /etc/apt/sources.list and I did sudo apt-get update and I installed sudo apt-get install build-essential. It worked for me !
I am trying to install the capybara-webkit gem on Amazon Linux AMI release 2017.09.
I tried following the install instructions for CentOS (maybe the wrong approach):
sudo yum install -y epel-release
sudo yum install -y qt5-qtwebkit-devel
The first package installed fine, but qt5-qtwebkit-devel gave the following error:
Error: Package: qt5-qtbase-gui-5.6.1-3.el6.x86_64 (epel)
Requires: libgdk-x11-2.0.so.0()(64bit)
Error: Package: qt5-qtbase-gui-5.6.1-3.el6.x86_64 (epel)
Requires: libgdk_pixbuf-2.0.so.0()(64bit)
Error: Package: qt5-qtbase-gui-5.6.1-3.el6.x86_64 (epel)
Requires: libatk-1.0.so.0()(64bit)
Error: Package: qt5-qtbase-gui-5.6.1-3.el6.x86_64 (epel)
Requires: libgtk-x11-2.0.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I am unable to resolve the libgdk_pixbuf-2.0.so.0 dependency in Amazon Linux. I tried installing libX11-devel but that did not resolve the issue.
Of course gem install capybara-webkit -v '1.10.1' fails because qt5 is not installed.
I found a blog with instructions for installing capybara with qt-4.8, I would rather use the latest version and would prefer to use a package manager instead of compiling the package manually.
My question is, how can I install capybara-webkit on Amazon Linux AMI using the package managers?
Amazon AMI doesn’t have a yum repo for the libgtk-x11-2.0.so.0. So you need to install other distro packages. In this case, did used CentOS.
$ sudo yum install ftp://ftp.riken.jp/Linux/centos/6/os/x86_64/Packages/hicolor-icon-theme-0.11-1.1.el6.noarch.rpm
$ sudo yum install ftp://ftp.riken.jp/Linux/centos/6/os/x86_64/Packages/atk-1.30.0-1.el6.x86_64.rpm
$ sudo yum install ftp://ftp.riken.jp/Linux/centos/6/os/x86_64/Packages/gdk-pixbuf2-2.24.1-6.el6_7.x86_64.rpm
$ sudo yum install ftp://ftp.riken.jp/Linux/centos/6/os/x86_64/Packages/gtk2-2.24.23-9.el6.x86_64.rpm
Once the packages are install the setup should work for you
PS: Source https://ubunifu.co/python/installing-libgtk-x11-2-0-so-0-in-amazon-linux-ami-2017-03-1
I'm using chef but this is where I got the necessary dependencies.
just add this repo to yum repos, and then do the install
yum_repository 'centos-base' do
url 'http://mirror.centos.org/centos/6/os/x86_64/'
gpgkey 'http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6'
action :add
end
package 'qt5-qtwebkit-devel'
I formatted my computer and transferred all my RoR applications to my new Lubuntu System.
I had Ubuntu with Unity. (still a linux system). I have installed rvm, ruby, rails, and they all work fine! I then run "bundle install" before actually running "rails s" to test my app.
This is what I get
Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Please include the full output of the command, your Gemfile and Gemfile.lock. Thanks!
/home/user/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- openssl (LoadError)
Any help ?
This is what sudo apt-get install openssl gives me:
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssl is already the newest version.
The following packages were automatically installed and are no longer required:
libreadline-gplv2-dev git-man libncurses5-dev libnspr4-0d libtinfo-dev git libreadline5 zlib1g-dev liberror-perl libsqlite3-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Did you install the packages before installing the ruby version with RVM?
Try removing the ruby version, running
sudo apt-get install libssl-dev openssl
and then install ruby version again