Skip to content
Advertisement

Tag: centos7

How to install gcc8 using devtoolset-8-gcc

I am using CentOS Linux release 7.3.1611 which has gcc 4.8.5 20150623 installed. I am looking for a way to install a newer version of gcc, specially 8.1. I found the following site on how to install gcc v7 link 1 which describes how to install gcc v7 (using devtoolset-7-gcc*). I did follow the guidelines and was able to install

Yum Repo Issues

My CentOS-Base.repo has the following mirrors: When I say yum install yum-utils, it fails with the error saying http://custom-url/centOS-updates/Packages/yum-utils-1.1.31-46.el7_5.noarch.rpm: [Errno 14] HTTP Error 500 – Internal Server Error Trying other mirror. Error downloading packages: yum-utils-1.1.31-46.el7_5.noarch: [Errno 256] No more mirrors to try. I have two questions here: Why is it looking at the `updates` repo instead of base. `yum info

Centos 7 with PHP 7.2 Pthreads unable to load redis.so

I recently setup a new Centos 7 system with php 7.2 and Redis. This is working fine. This was my yum install of the php packages. yum install php72.x86_64 php72-php-cli.x86_64 php72-php-common.x86_64 php72-php-devel.x86_64 php72-php-fpm.x86_64 php72-php-gd.x86_64 php72-php-json.x86_64 php72-php-mbstring.x86_64 php72-php-mysqlnd.x86_64 php72-php-pdo.x86_64 php72-php-pecl-http.x86_64 php72-php-pecl-http-devel.x86_64 php72-php-pecl-igbinary.x86_64 php72-php-pecl-memcached.x86_64 php72-php-pecl-msgpack.x86_64 php72-php-pecl-propro.x86_64 php72-php-pecl-raphf.x86_64 php72-php-xml.x86_64 php72-php-xmlrpc.x86_64 php72-runtime.x86_64 php72-php-pecl-redis.x86_64 php php-devel Then I installed pthreads as explained in these directions

How to run commands on CentOS reboot

I want to run the following commands one after the other upon reboot of the server after I do shutdown -r now but not sure how to do it: getenforce setenforce 0 systemctl start httpd.service I’m running CentOS 7.x Answer Technically you can crontab it and add the line and put the 3 commands in the myscript.sh with the proper

error JAVA_HOME is not defined correctly

When Ii run command mvn spring-boot:run, I got error: when I check above path java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.x86_64 is not exist. My java version is: I check JAVA_HOME in /etc/environment Is it because of different version in JAVA_HOME I got the error? I try to change the JAVA_HOME path to other version but still got same error. I’m using centos 7. Answer problem

How to uninstall RPM without dependencies error in cent os?

I installed the openssl rpm some long days ago. After that i am unable to uninstall the rpm so that i deleted the /usr/bin/openssl folder manually.Though I deleted it manually, when i grep using this command rpm -qa openssl i can find the rpm. But when i execute the openssl command in terminal it is showing bash: openssl: command not

How to install konsole on Cent OS 7?

I have Cent OS 7. Since konsole tool is in kde package, I’ve installed it: But still konsole isn’t installed. So, how can I install it? Answer You can just install the konsole package. yum provides konsole Will return: konsole-4.10.5-4.el7.x86_64 : KDE Terminal emulator So you just have to install it with yum install konsole Kind regards

free -g with sed -n plus nth character

I am trying to create a script to display just one of the numbers from the free command. In my case, the number I want is on the 2nd line of the free -g output and at character slot 43. The original output of free -g is: So far I have gotten the 2nd line to display with: I need

Apache not seeing website – CentOS 7

I have setup a lot of Virtual Hosts in Ubuntu but today I needed to do this on a CentOS 7 server. I installed Apache and setup the VHost config but nothing appears when I view the site. I know that Apache is reading my Config files because if I add a fault in it and restart Apache, it complains

Advertisement