I've already installed the docker, it worked just fine.I am now trying to install the Centos operating system, but I get the error constantly. The error is below.
+ sh -c 'yum install -y -q docker-ce'
Transaction check error:
file /usr/bin/docker from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
file /usr/share/bash-completion/completions/docker from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
file /usr/share/man/man1/docker-attach.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
file /usr/share/man/man1/docker-checkpoint-create.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
file /usr/share/man/man1/docker-checkpoint-ls.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
file /usr/share/man/man1/docker-checkpoint-rm.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
file /usr/share/man/man1/docker-checkpoint.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
file /usr/share/man/man1/docker-commit.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
file /usr/share/man/man1/docker-config-create.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
file /usr/share/man/man1/docker-config-inspect.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
file /usr/share/man/man1/docker-config-ls.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
file /usr/share/man/man1/docker-config-rm.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
.............
The problem seems to be that the installed version of docker-ce-cli is 18.09.0.ce-1.1.beta1.el7, which is newer than the version of the docker-ce package you are trying to install, 18.06.1.ce-3.el7. The docker-ce packaging is not prepared for that.
You will have to downgrade or remove docker-ce-cli before installing the docker-ce package.
Related
I am trying to install luajwt using the following command:
$ sudo luarocks install --server=http://rocks.moonscript.org luajwt
But unfortunately, I receive the following error:
Installing http://rocks.moonscript.org/luajwt-1.3-4.src.rock
Missing dependencies for luajwt 1.3-4:
luacrypto >= 0.3.2-1 (not installed)
lua-cjson >= 2.1.0 (not installed)
lbase64 >= 20120807-3 (not installed)
luajwt 1.3-4 depends on lua >= 5.1 (5.4-1 provided by VM)
luajwt 1.3-4 depends on luacrypto >= 0.3.2-1 (not installed)
Installing http://rocks.moonscript.org/luacrypto-0.3.2-2.src.rock
Error: Failed installing dependency: http://rocks.moonscript.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
No file openssl/evp.h in /include
No file openssl/evp.h in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
No file openssl/evp.h in /usr/local/opt/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
I tried to resolve that issue by installing OpenSSL with luarocks but I am getting the same error:
➜ Luarocks install openssl
Installing https://luarocks.org/openssl-0.8.2-1.src.rock
Error: Could not find header file for OPENSSL
No file openssl/evp.h in /usr/local/include
No file openssl/evp.h in /usr/include
No file openssl/evp.h in /include
No file openssl/evp.h in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
No file openssl/evp.h in /usr/local/opt/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 openssl OPENSSL_DIR=/usr/local
How can I avoid this error?
Please how should i install psycopg2-binary on my python image.
I tried pip install psycopg2-binary==2.8.2 but i got this error
ERROR: Could not find a version that satisfies the requirement psycopg2-binary==2.8.2 (from versions: 2.7.4, 2.7.5, 2.7.6, 2.7.6.1, 2.7.7, 2.8, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.8.5, 2.8.6, 2.9, 2.9.1) ERROR: No matching distribution found for psycopg2-binary==2.8.2
My image is python3.9-alpine
What should i do please???
Given the amount of work that requires to be done, I suggest you use a different base image, e.g. python:3.9 or that you install the alpine package py3-psycopg2 (which is on v 2.8.6 at the time of writing).
Anyway I tried it on my machine and in the error it's also written Error: pg_config executable not found.
The pg_config is part of the postgres_dev package and needs to be installed before installing the psycopg2-binary package.
The psycopg2-binary will also need the gcc to be installed and some other libraries.
In other words, you have to execute the following commands:
apk add postgresql-dev gcc ...
pip install psycopg2-binary==2.8.2
I've abandoned the topic after I had to install a bunch of libraries.
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).
I want to install the latest RabbitMQ server 3.6.14 on CentOS 6.
I followed this tutorial: How To Install and Manage RabbitMQ
When I ran the below command to install "erlang", it installed the "erlang-R14B-04" package and not "erlang >= R16B-03" required to install RabbitMQ 3.6.14.
# yum install erlang
So I tried to uninstall erlang by running
# yum remove erlang
And when I downloaded and tried to install "erlang >= R16B-03" from a .rpm file, I encountered the following errors:
Transaction Check Error:
file /usr/bin/epmd from install of esl-erlang-R16B03-1.x86_64 conflicts with file from package erlang-erts-R14B-04.3.el6.x86_64
file /usr/bin/erl from install of esl-erlang-R16B03-1.x86_64 conflicts with file from package erlang-erts-R14B-04.3.el6.x86_64
file /usr/bin/erlc from install of esl-erlang-R16B03-1.x86_64 conflicts with file from package erlang-erts-R14B-04.3.el6.x86_64
file /usr/bin/escript from install of esl-erlang-R16B03-1.x86_64 conflicts with file from package erlang-erts-R14B-04.3.el6.x86_64
file /usr/bin/run_erl from install of esl-erlang-R16B03-1.x86_64 conflicts with file from package erlang-erts-R14B-04.3.el6.x86_64
file /usr/bin/run_test from install of esl-erlang-R16B03-1.x86_64 conflicts with file from package erlang-erts-R14B-04.3.el6.x86_64
file /usr/bin/to_erl from install of esl-erlang-R16B03-1.x86_64 conflicts with file from package erlang-erts-R14B-04.3.el6.x86_64
file /usr/bin/dialyzer from install of esl-erlang-R16B03-1.x86_64 conflicts with file from package erlang-dialyzer-R14B-04.3.el6.x86_64
file /usr/bin/typer from install of esl-erlang-R16B03-1.x86_64 conflicts with file from package erlang-typer-R14B-04.3.el6.x86_64
Error Summary
To deal with them, I removed the mentioned files: epmd, erl, erlc, escript, run_erl, run_test, to_erl, dialyzer, and typer after backing them up.
But still I face the same error. How do I upgrade from erlang-R14B-04 to erlang-R16B-03? Please help.
Download the package:
wget https://github.com/rabbitmq/erlang-rpm/releases/download/v20.3.0/erlang-20.3-1.el6.x86_64.rpm
then install
yum install erlang-20.3-1.el6.x86_64.rpm
Why I can't use cocoapods command pod in directory /
/ $ pod
fish: Unknown command 'pod'
/ $
If use command in home directory, it work well.
~ $ pod
Usage:
$ pod COMMAND
CocoaPods, the Cocoa library package manager.
Find the reason, my cocoapods install in chruby ruby 2.4, and .ruby-version file in home directory.
So, the root directory not have .ruby-version file, just use system base ruby, that not install cocoapods. So Unknown command error occur.
At last, I copy my ~/.ruby-version to /.ruby-version, it's work!