CentOS7 Bash scripts for multiple gcc installations
$30-250 USD
Paid on delivery
Hello-
I have the latest version of 64b Centos7 (Currently build 1804), running in the latest version of VirtualBox hosted on 64b Windows 10. I have a multiple- (100s of ) file C/C++ software project that needs to compile under gcc 6.1 "or later", and I have been tasked with testing the successful build under gcc/g++ 6.3, 7.3, and 8.1.
I need someone who can write a 2 bash scripts for me that do the following:
Bash Script 1: (to be named 'download_andBuild_gnuTools') Downloads and builds gcc (and g++) version N and installs all files into a directory gcc.N/ (not the usual /usr/bin, /usr/lib-xx, etc). Download/build *must* include 32b libraries and header files. (for some reason, Yum won't automatically pull these down on my machine). Input to script 1 will be a major version of gnu tools (i.e 6.3, 7.3, 8.1; for example "download_andBuild_gnuTools 6.2")
Script 2: Named "setupUse_gnu". Sets whatever environment are needed (PATH, LD_RUN_PATH, etc) so that when gcc, g++, or ld are invoked, it will only use static link and header files from the gcc.N directory (not the usual /usr/lib-xx) directories. Input to script 2 will be a major version of gnu tools (i.e 6.3, 7.3, 8.1; for example "setupUse_gnu 6.2)"
Project will be deemed complete when I can, on my CentOS 7.4 machine:
a) use script 1 to download/build a version of the gnu tools, verify that the executables are installed in the correct directory (i.e, gcc.6.2/ for gcc 6.2), and that no directories under /usr or /lib have been modified,
b) use script 2 to setup my environment to use a specific version of gcc (built with script 1) to test the build scripts for our software
c) build the software
Other notes:
a) All files to be built are only C or C++; no need for the Fortran or other gnu compilers
b) I have verified on 2 other computers in the company that this software builds correctly if gcc 6.1, 6.2, or 7.2 are installed natively (as long as the both the 64 and 32b libs and headers are installed), so I will use those "major versions" of gcc to test the scripts, if any build errors occur, to determine whether the issue is related to the 'script installed gcc' or the software under test.
c) I have gcc 5.4 installed natively, and don't want to script 1 to modify any of the existing gcc files in /usr/bin, /usr/lib, /usr/lib64, etc that would alter the existing native install.
d) I'll run this script as root; no need for any 'sudo' commands
Thanks
Rick F
Project ID: #22604300
About the project
6 freelancers are bidding on average $205 for this job
Hey there, I'm a Systems Engineer with coding skills. I have been working with Linux/Unix-systems for years. I had developed tons of Bash scripts. I can help. Regards.
Hello my name is Nikos and Im working on the Linux server administration field for the past 6 years. Over these years I worked for two web hosting companies as a Senior Administrator managing their servers & providing More
Hi , I can write the bash to install and compile using gcc but the question is your software is working on both 32 and 64 or you want to have different installation for each type ? Let's talk in details if you are inte More
Hello sir, nice to meet you! I'm a DevOps Engineer with strong experience in this. I'm confident to handle this task because it's one of my daily jobs in office. Feel free to contact me! Thank you!