php55w-common conflicts with php-common-5.* | Php issues while installing libraries
I was trying to install mongo extension with pecl. It gave me error: Then, I…
March 03, 2021
We will see how we can install Python from command line using pyenv, and we will also create a Dockerfile.
I will be working on Centos-7 machine.
yum -y update
yum -y install git \
libffi-devel libffi libssh2-devel autoconf automake libtool \
libxml2-devel libxslt-devel libjpeg-devel zlib-devel \
make cmake gcc python-devel python-setuptools \
bzip2-devel sqlite-devel wget openssl
PYENV_INSTALLER_URL=https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer
PYTHON_CONFIGURE_OPTS="--enable-shared"
RUN umask 022
curl -s -S -L "$PYENV_INSTALLER_URL" -o /usr/bin/pyenv-installer
chmod 0755 /usr/bin/pyenv-installer
/usr/bin/pyenv-installer
export PATH="/root/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
PYENVVERSION=3.9.2 pyenv install $PYENVVERSION pyenv global $PYENV_VERSION
eval ”$(pyenv init -)” python —version
## Complete Dockerfile for Installing Python 3.9.2
FROM centos:7
RUN yum makecache fast && yum -y update
RUN yum -y install git
libffi-devel openssl-devel libffi libssh2-devel autoconf automake libtool
libxml2-devel libxslt-devel libjpeg-devel zlib-devel
make cmake gcc python-devel python-setuptools wget openssl
bzip2-devel sqlite-devel
&& yum clean all
&& rm -rf /var/cache/yum
ARG PYENVVERSION=3.9.2
ENV PYENVINSTALLERURL=https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer
ENV PYTHONCONFIGUREOPTS=“—enable-shared”
ENV PATH=/root/.pyenv/bin:$PATH
RUN umask 022
&& curl -s -S -L “$PYENVINSTALLERURL” -o /usr/bin/pyenv-installer
&& chmod 0755 /usr/bin/pyenv-installer
&& /usr/bin/pyenv-installer
&& eval ”$(pyenv init -)”
&& pyenv install $PYENVVERSION
&& pyenv global $PYENV_VERSION
I was trying to install mongo extension with pecl. It gave me error: Then, I…
Introduction This post is about hosting MongoDB replica set cluster with…
If your youtube video looks like:https://www.youtube.com/watch?v=g0kFl7sBdDQ…
Here, we give exact response from youtube apis.
This article shows some of common usages of JIRA rest apis. Note: This article…
Introduction In previous posts, we saw how to build FIPS enabled Openssl, and…
Introduction Strapi is a backend system provides basic crud operations with…
Introduction I had to create many repositories in an Github organization. I…
Introduction I was trying to download some youtube videos for my kids. As I have…
Introduction In this post, we will explore some useful command line options for…
Introduction In this post, we will see how we can apply a patch to Python and…
Introduction We will introduce a Package Manager for Windows: . In automations…