Questions tagged [rhel7]

For development issues encountered while using Red Hat Enterprise Linux 7

This tag is for questions specific to version 7 of Red Hat Enterprise Linux. For general questions regarding Red Hat Enterprise Linux (RHEL), use the tag.

Click here for free development subscription which allows you to download Red Hat Enterprise Linux75 with Software Collections for development use https://developers.redhat.com/downloads/

714 questions
281
votes
10 answers

How to redirect output of systemd service to a file

I am trying to redirect output of a systemd service to a file but it doesn't seem to work: [Unit] Description=customprocess After=network.target [Service] Type=forking ExecStart=/usr/local/bin/binary1 agent -config-dir…
meallhour
  • 13,921
  • 21
  • 60
  • 117
47
votes
3 answers

How to install python3-devel on red hat 7

I am trying to install something in my virtual environment, which uses anaconda python 3.6. I get the gcc failed with exit status 1, hinting on the absence of the right python3-devel package, as described in error: command 'gcc' failed with exit…
sequence_hard
  • 5,115
  • 10
  • 30
  • 50
40
votes
3 answers

The command '/bin/sh -c returned a non-zero code: 127

I'm new to docker so I might be doing this wrong, but I'm trying to install Tomcat6 through a Dockerfile which like this: FROM rhel7:latest RUN cd /tmp RUN "wget",…
user5201726
  • 542
  • 1
  • 5
  • 13
34
votes
2 answers

How to debug a failed systemctl service (code=exited, status=217/USER)?

I'm trying to add my first service on rhel7 (which resides in AWS/EC2), but - the service is not configured correctly - as I get: [ec2-user@ip-172-30-1-96 ~]$ systemctl status clouddirectd.service -l ● clouddirectd.service - CloudDirect Daemon …
boardrider
  • 5,882
  • 7
  • 49
  • 86
31
votes
4 answers

Cannot install docker in a RHEL server

I am getting Requires: fuse-overlayfs >= 0.7 error while installing docker in RHEL-7. sudo yum install docker-ce Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered with an…
Exploring
  • 2,493
  • 11
  • 56
  • 97
26
votes
2 answers

Understanding docker port mappings

Please explain the following output: docker ps ExanpleContainter Ports -------- 10.10.10.10:443->443/tcp, 0.0.0.0:1937->1937/tcp And, docker inspect ExanpleContainter "Ports": { "1937/tcp": [ { "HostIp": "0.0.0.0", "HostPort":…
Aniruddha
  • 837
  • 3
  • 13
  • 37
26
votes
5 answers

PHP is_writable() function always returns false for a writable directory

I'm trying to install a PHP-based software package in a Red Hat 7 Amazon EC2 instance (ami-8cff51fb) that has had Apache 2.4.6 and PHP 5.4.16 installed on it using yum. The installation fails because it says a particular directory needs to be…
John Topley
  • 113,588
  • 46
  • 195
  • 237
22
votes
1 answer

How to install gcc make perl package in virtual box with rhel 7.5 os

I couldn't install guest addition on virtual box version 5.2.12 error caused- This system is currently not set up to build kernel modules. Please install the gcc make perl packages from your distribution.
Tanul
  • 221
  • 1
  • 2
  • 3
20
votes
4 answers

Apache Httpd Build from source: fatal error: expat.h: No such file or directory

I am trying to build Apache Server v 2.4.38 on RHEL 7.3 and I am using apr 1.6.5, apr-util 1.6.1, and pcre 8.42. I am running following commands ./configure --with-included-apr --with-pcre=/data/abc/installed/pcre_installed…
Amit Dube
  • 947
  • 4
  • 10
  • 23
15
votes
1 answer

Systemd Service for jar file gets "operation timed out" error after few minues or stay in "activating mode"

the service unit is: [Unit] Description=test After=syslog.target After=network.target [Service] Type=forking ExecStart=/bin/java -jar /home/ec2-user/test.jar TimeoutSec=300 [Install] WantedBy=multi-user.target it starts fine for 1-4 minues. But…
user3674227
  • 151
  • 1
  • 1
  • 6
15
votes
1 answer

How to Compile 32-bit Apps on 64-bit RHEL?

I'm trying to compile a 32-bit C application on RHEL 7 64-bit using gcc 4.8. I'm getting a compiler error /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory. What do I need to do to get 32 bit apps compiled and linked?
BSalita
  • 8,420
  • 10
  • 51
  • 68
13
votes
1 answer

Could not find xmlsec1 config. Are libxmlsec1-dev and pkg-config installed?

This is happing especially on RHEL Already installed this packages yum install libxml2-devel xmlsec1-devel xmlsec1-openssl-devel libtool-ltdl-devel Could not find xmlsec1 config. Are libxmlsec1-dev and pkg-config installed Command…
Shiva
  • 131
  • 1
  • 1
  • 5
13
votes
4 answers

how to install gcc 4.9.2 on RHEL 7.4

I am trying to install gcc and g++ 4.9.2 on Linux. I'm pretty new with Linux and i saw some guides of how to install, but each time I encountered with another problem. I don't have any gcc right now on my machine. my Linux version is: Red Hat…
Hope
  • 193
  • 1
  • 1
  • 8
12
votes
4 answers

logrotate doesn't rotate catalina.out

I am trying to use logrotate to rotate out tomcat's catalina.out automatically on a daily basis even though I can manually call logrotate and it works fine. I am using I have tried every solution out there, but I cannot get it to rotate. I am on…
Justin
  • 1,356
  • 2
  • 9
  • 16
11
votes
4 answers

InetAddress.getLocalHost().getHostName() different behavior between JDK 11 and JDK 8

I wrote a simple java program to basically run: System.out.println(InetAddress.getLocalHost().getHostName()); If I compile it and run it on Java 1.7.231 or 1.8.221 On RHEL 7.7, it returns the FQDN (computer.domain.com), but ON THE SAME SERVER,…
Andy Knipp
  • 133
  • 6
1
2 3
47 48