I download the source from github:https://github.com/nghttp2/nghttp2.
and install with step :
$ autoreconf -i
$ automake
$ autoconf
$ ./configure
$ make
Every step is OK,but I can not use it。
nghttp
-bash: nghttp: command not found
But ,I install nghttp2 on Ubuntu 14.04 successfull!
sudo yum groupinstall "Development Tools"
sudo yum install libev libev-devel zlib zlib-devel openssl openssl-devel git
git clone git#github.com:tatsuhiro-t/nghttp2.git //or download and unzip
cd nghttp2
autoreconf -i
automake
autoconf
./configure --prefix=/usr/local/nghttpx --enable-app
make
sudo make install
/usr/local/bin/{nghttp,nghttpd,nghttpx}
Related
I just created a fresh RHEL VM on GCP to play some Kubernetes on it.
It was not having any git installed on it.
I used yum package manager to install git on it, but it didn't installed the latest version of git.
Current Version: 2.38.0 / 3 October 2022
Version Installed by yum: 1.8.3.1
Create a file:
touch gitupgrade.sh
And add the following to it:
yum -y remove git
yum -y clean packages
mkdir tempgit
cd tempgit
yum install -y autoconf cpio curl-devel expat-devel gcc gettext-devel make openssl-devel perl-ExtUtils-MakeMaker zlib-devel
wget -O v2.24.1.tar.gz https://github.com/git/git/archive/v2.24.1.tar.gz
tar -xzvf ./v2.24.1.tar.gz
cd git-2.24.1/
make configure
./configure --prefix=/usr/local/git
make && make install
ln -sf /usr/local/git/bin/* /usr/bin/
cd ..
rm -fr git-2.24.1
cd ..
rm -fr tempgit
echo "results"
which git
git --version
The run it to upgrade:
sudo sh gitupgrade.sh
And that’s a wrap
Red Hat Enterprise Linux, Oracle Linux, CentOS, Scientific Linux, et al.
RHEL and derivatives typically ship older versions of git. You can download a tarball and build from source, or use a 3rd-party repository such as the IUS Community Project to obtain a more recent version of git.
I have a Centos server.
result
$ cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
and
$ yum list installed
zip.x86_64 3.0-1.el6_7-1 #anaconda-CentOS-201703281317.x86_64/6.9
zlip.x86_64 1.2.3-29.el6 #anaconda-CentOS-201703281317.x86_64/6.9
........... ............ ........................................
zlip-devel.x86_64 1.2.3-29.el6 #anaconda-CentOS-201703281317.x86_64/6.9
All are packages of el6. My server is offline server and i install packages from private registry.
Now i can install packages for el6 but not for el7.
You can download the EPEL RPM and the other packages on another machine:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -P ~/Downloads
wget https://centos.pkgs.org/7/centos-x86_64/zip-3.0-11.el7.x86_64.rpm -P ~/Downloads
wget https://centos.pkgs.org/7/centos-updates-x86_64/zlib-1.2.7-19.el7_9.x86_64.rpm -P ~/Downloads
wget https://centos.pkgs.org/7/centos-updates-x86_64/zlib-devel-1.2.7-19.el7_9.x86_64.rpm -P ~/Downloads
...and then "sneakernet" them to your server (I would verify the hashes (https://getfedora.org/security/)). You also need to make sure that /usr/sbin/ldconfig, /lib64/libc.so.6, and rtld (from glibc-2.17) are on your system.
Once the RPM is verified, you can install them:
sudo yum install ~/Downloads/epel-release-latest-7.noarch.rpm
sudo yum install ~/Downloads/zip-3.0-11.el7.x86_64.rpm
sudo yum install ~/Downloads/zlib-1.2.7-19.el7_9.x86_64.rpm
sudo yum install ~/Downloads/zlib-devel-1.2.7-19.el7_9.x86_64.rpm
While installing jq on centos, I am experiencing an issue. I have run the following commands:
yum groupinstall "Development Tools"
yum install autoconf automake libtool python
after that I have used pip install jq and I was facing error like this:
jq.c:8:22: fatal error: pyconfig.h: No such file or directory
#include "pyconfig.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-akuaZu/jq/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read ().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))"
instal --record /tmp/pip-04CW9h-record/install-record.txt --single-version-externally
-managed --compile" failed with error code 1 in /tmp/pip-build-akuaZu/jq/
Can anyone help me??
Just in case if someone is looking for a different solution.
This is how I installed in Cent OS 7 and it worked. Ensure you have sudo privilege.
Installer solution
yum install epel-release -y
yum install jq -y
jq --version
output was jq-1.5
Reference
This is how I installed it on CentOS 7:
wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 -O jq
chmod +x jq
Then
mv jq /usr/local/bin
Install pre-req & install jq
$ sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
$ sudo yum install jq -y
more usage info.. https://medium.com/#gchandra/install-jq-on-centos-7-459dd650baa3
I can't install MP4Box on CentOS7.3.
CentOS Linux release 7.3.1611 (Core)
I attempted to install with reference to the following URL.
https://www.24x7serversolutions.com/blog/install-mp4box-on-centos/
yum -y install freetype-devel SDL-devel freeglut-devel
wget http://repo.bstack.net/mp4box/gpac-0.4.5.tar.gz
wget http://repo.bstack.net/mp4box/gpac_extra_libs-0.4.5.tar.gz
tar -zxvf gpac-0.4.5.tar.gz
tar -zxvf gpac_extra_libs-0.4.5.tar.gz
cd gpac_extra_libs
cp -r * /usr/local/src/gpac/extra_lib
cd ..
cd gpac
chmod 755 configure
./configure
But, at the time of this command,
make lib
・・・
gcc: エラー: unrecognized command line option ‘-Wl’
gcc: エラー: unrecognized command line option ‘--warn-common’
make[1]: *** [libgpac.so] エラー 1
make[1]: ディレクトリ `/home/source/gpac/src' から出ます
make: *** [lib] エラー 2
I tried to set ln as following.
ln -s /usr/lib64/libglut.so.3 /usr/lib64/libglut.so
But, the same error was displayed.
How do I deal with it?
This is how I installed the latest version of MP4Box from the GitHub. The main purpose of this script is to install the MP4Box to docker centos amazoncorretto container.
yum -y install freetype-devel SDL-devel freeglut-devel ugcc gcc-c++ git libtool make zlib-devel
git clone https://github.com/gpac/gpac gpac_public
cd gpac_public
./configure --static-mp4box
make
make install
This is the combination of two resources:
https://github.com/gpac/gpac/wiki/GPAC-Build-Guide-for-Linux
https://gist.github.com/helpsquad/48ee2baf2eb5ee655e8755618b4c8c75
If you need MP4Box only from GPAC, I recommend that you follow this tutorial.
You need the following packages: git, gcc, make, libpthread-devel.
Execute these command-lines:
git clone https://github.com/gpac/gpac.git
cd gpac
./configure --static-mp4box --use-zlib=no
make -j4
sudo make install
I think there might be a bug in that version of gpac. Try this instead:
yum -y install freetype-devel SDL-devel freeglut-devel
git clone https://github.com/gpac/gpac
cd gpac
git checkout tags/v0.6.1 -b v0.6.1
./configure
make lib
Well it's there on the official "rpmfusion-free" repository.
Just do:
sudo yum install gpac
(Taken from: http://rahul-ghose.blogspot.com/2017/05/install-mp4-box-on-centos.html)
Mp4Box included in gpac, so you must install gpac.
yum install gpac
I'm trying to access the /proc/< pid >/exe symlink on centos 6.6 but i'm geting
ls: cannot access /proc/57/exe: Permission denied
My Dockerfile is
FROM centos:6
# install base packages
RUN yum -y update
RUN yum -y groupinstall "Development Tools"
RUN yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite- devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
RUN yum -y install wget
RUN wget http://python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
RUN yum -y install tar
RUN tar -xf Python-2.7.6.tar.xz
RUN cd Python-2.7.6 && ./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
RUN cd Python-2.7.6 && make
RUN cd Python-2.7.6 && make altinstall
# First get the setup script for Setuptools:
RUN wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
# Then install it for Python 2.7 and/or Python 3.3:
RUN python2.7 ez_setup.py
# Now install pip using the newly installed setuptools:
RUN easy_install-2.7 pip
#lxml
RUN yum -y install python-devel libxml2-devel libxslt-devel
RUN pip install lxml
RUN pip install pytest
RUN yum install -y gcc-c++
RUN pip install protobuf
RUN yum install -y rpm-build
This happens for any process.
Thanks in advance.