Would a program compiled in a Centos 7 environment run in a Centos 5.6 environment? - gcc

Does anyone have experience running a program compiled using gcc in a Centos 7 linux environment in a Centos 5.6 linux environment? Are there specific gcc compiler versions or command line options that can do the job?
We haven't tried compiling or running programs yet except, of course, on our current Centos 5.6 platform where our programs are currently compiling and running fine.
We are considering upgrading some (but, unfortunately, not all) of our systems to Centos 7 to enable access to certain tools and software applications not available for Centos 5.6.

Related

Code compiled on RHEL 8 using gcc not working on RHEL 6. Getting error `GLIBC_2.14' not found

We are having an application which is built using gcc on RHEL 8.
When we run the executable for this application on RHEL 6 we are getting error `GLIBC_2.14' not found required by application.
What are the options which can make application built on RHEL 8 using gcc run on RHEL 6.
What are the options which can make application built on RHEL 8 using gcc run on RHEL 6.
Running the application in a docker container may be a reasonable option.
You could also install GLIBC-2.14 (or newer) in parallel to the system GLIBC. See this answer.

How do I install Pterodacty local on my maschine

I am attempting to install the Pterodactyl Panel on my local machine for development designing purposes. I am running Windows 10 Pro.
From the Pterodactyl installation documentation page, Here are some OS that can run Pterodactyl:
Ubuntu 18.04, 20.04
CentOS 7, 8
Debian 9, 10, 11
And the way of installation is also mostly using the linux command. From here it can be concluded, maybe Pterodactyl can not be installed / running on Windows.
Try to use something like a vps or linux vm to run Pterodactyl, if it's just for development don't need to use too high specs.
Source: https://pterodactyl.io/panel/1.0/getting_started.html#picking-a-server-os

Powershell script on mac error

Just downloaded powershell trying to run a script on Mac and received the following error. Would appreciate any help from anyone familiar for a non-windows user. :)
The script you are running is not compatible with MacOS. It is trying to pull in resources that are only on Windows.
For Information on the Meltdown/Spectre vulnerability on MacOS, see Apples post: About speculative execution vulnerabilities in ARM-based and Intel CPUs
The Step by Step instructions are here:
Supports Ubuntu 14.04, Ubuntu 16.04, Ubuntu 17.04, Debian 8, Debian 9, CentOS 7, Red Hat Enterprise Linux (RHEL) 7, OpenSUSE 42.2, Fedora 25, Fedora 26, Arch Linux, and macOS 10.12.
For Linux distributions that are not officially supported, you can try using the PowerShell AppImage. You can also try deploying PowerShell binaries directly using the Linux tar.gz archive, but you would need to set up the necessary dependencies based on the OS in separate steps.
All packages are available on our GitHub releases page. Once the package is installed, run pwsh from a terminal.
https://github.com/PowerShell/PowerShell/blob/master/docs/installation/linux.md#macos-1011
Is this and new install and was install successful?
How or what commands did you run to install it, meaning following the defined steps.
You do not say what you are doing that caused this error and or is this a script you wrote or downloaded and are trying to use.
Point of note PoSH Core does not have all the features of Windows PowerShell, at least not yet. So, you have to work in those confines.
If this is from the install, you'll have to remove and reinstall.

How to run sonarqube on NetBSD

According to the requirements document for sonarqube:
The only prerequisite for running SonarQube is to have Java (Oracle JRE 7 onwards or OpenJDK 7 onwards) installed on your machine.
I want now to use a NetBSD 7.0 machine to run a sonarqube server.
OpenJDK8 is installed:
openjdk version "1.8.0_77-internal"
OpenJDK Runtime Environment (build
1.8.0_77-internal-pkgsrc_1.8.77-b00)
OpenJDK 64-Bit Server VM (build 25.77-b00, mixed mode)
However, sonarqube is using wrapper, and that software does not support NetBSD (FreeBSD is supported, but this is not close enough to serve as a working substitute).
I already tried using linux emulation mode. But, having a NetBSD native java being started from a linux emulated wrapper is not giving a usable configuration for runtime environment (libc version clashes, et. al.).
And installing a linux native openjdk8 and get the complete setup running in emulation mode is also not to be recommended.
With sonarqube 4.x (long ago) I had used war distribution
and this worked OK. But with this new environment I hoped for being able to use newer versions of sonarqube.
Questions:
Is there a way to bypass wrapper and start sonarqube relying on java only?
Alternatively, is there a way to get a NetBSD version of wrapper?
Would I be better of dropping sonarqube alltogether,
given my target platform?
The version of Java Service Wrapper used by SonarQube does not support NetBSD. That's not as critical as for MSWindows. SonarQube can be easily started as a unix daemon without it. You just have to execute java -jar lib/sonar-application-{version}.jar from the installation directory.

Build GCC 4.8.1 or higher on CentOS 6.5

I want to use GCC 4.8.1 or higher on a HPC machine with CentOS 6.5 which has a very old GCC. I do not have admin rights so everything has to be local. Do I have to really compile everything from source? Isn't there any rpm package that I can only install GCC with its dependencies? I found GCC rpms for CentOS 7 but not 6.5.
Without admin rights, building from source is
likely most reliable means to use gcc-4.8.1.
You can try installing (or extracting) gcc-4.8.1
from the redhat developer tool kit 2.0 described here
https://superuser.com/questions/381160/how-to-install-gcc-4-7-x-4-8-x-on-centos
CentOS 7 RPM's are unlikely to work in general on CentOS 6.x.
The developer 2.0 toolkit was built on CentOS6

Resources