Building GCC 11.2 on Amazon Linux 2 - linux

While attempting to build GCC version 11.3 for Linux-x86_64 (with multilib and multiarch support enabled), I am getting the following error:
In file included from /usr/include/features.h:447,
from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from /home/slagathor/Developer/gcc-11.3.0/libgcc/../gcc/tsystem.h:87,
from /home/slagathor/Developer/gcc-11.3.0/libgcc/generic-morestack.c:32:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
7 | # include <gnu/stubs-32.h>
From what I can tell this means that I don't have glibc-devel (32-bit version) installed; however when attempting to install it via YUM I get the following output:
$ sudo yum install glibc-devel.i686
Loaded plugins: amzn_workspaces_filter_updates, halt_os_update_check, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
firefox | 2.9 kB 00:00:00
workspaces-internal-dependencies | 2.2 kB 00:00:00
No package glibc-devel.i686 available.
I am using an Amazon Linux Workspace, any assistance would be helpful.

Maybe you are using centos so you need to go to chrome and search for "How to install glibc-devel.i686 for centos".

Related

unable to to install Varnish 6.0 on AmazonLinux

I am trying to install varnish 6 image on amazon linux and ubuntu but unfortunately I am not getting successful.
I have followed both the script and manual methods at https://packagecloud.io/varnishcache/varnish60/install#bash-rpm without success. See below the output. I am getting similar output on Ubuntu as well
[root#aaa00web32 yum.repos.d]# curl -s https://packagecloud.io/install/repositories/varnishcache/varnish60/script.rpm.sh | sudo bash
Detected operating system as amzn/2018.
Checking for curl...
Detected curl...
Downloading repository file: https://packagecloud.io/install/repositories/varnishcache/varnish60/config_file.repo?os=amzn&dist=2018&source=script
done.
Installing pygpgme to verify GPG signatures...
Loaded plugins: ovl, priorities
amzn-main | 2.1 kB 00:00:00
amzn-updates | 2.5 kB 00:00:00
nt-local | 2.9 kB 00:00:00
varnishcache_varnish60-source/signature | 836 B 00:00:00
varnishcache_varnish60-source/signature | 951 B 00:00:01 !!!
(1/6): amzn-main/latest/group_gz | 4.4 kB 00:00:00
(2/6): amzn-updates/latest/group_gz | 4.4 kB 00:00:00
(3/6): nt-local/primary_db | 59 kB 00:00:00
(4/6): amzn-updates/latest/primary_db | 351 kB 00:00:00
(5/6): amzn-updates/latest/updateinfo | 502 kB 00:00:00
(6/6): amzn-main/latest/primary_db | 4.0 MB 00:00:01
varnishcache_varnish60-source/primary | 175 B 00:00:01
Package python26-pygpgme-0.3-9.12.amzn1.x86_64 already installed and latest version
Nothing to do
Installing yum-utils...
Loaded plugins: ovl, priorities
Package yum-utils-1.1.31-40.29.amzn1.noarch already installed and latest version
Nothing to do
Generating yum cache for varnishcache_varnish60...
The repository is setup! You can now install packages.
[root#aaa00web32 yum.repos.d]# yum install varnish
Loaded plugins: ovl, priorities
No package varnish available.
Error: Nothing to do
[root#aaa00web32 yum.repos.d]# yum update
Loaded plugins: ovl, priorities
No packages marked for update
[root#aaa00web32 yum.repos.d]#
Anyone has any idea what could be the issue here?
varnish 6.0 not support amazon linux
in [https://packagecloud.io/varnishcache/varnish60/install#bash-rpm][1] you could see in the install script
else
aws=`grep -q Amazon /etc/issue`
if [ "$?" = "0" ]; then
dist='6'
os='aws'
else
unknown_os
fi
amazon linux set dist to 6
in varnish download page [https://packagecloud.io/varnishcache/varnish60lts?page=1][2] you can see that there is no el6
same occur if you search for el6 tag [https://packagecloud.io/app/varnishcache/varnish60/search?dist=el%2F6][3]

Unable to install GConf2 in AWS EC2 AMI

I have setup an AWS EC2 instance [Amazon Linux AMI 2017.03.1 (HVM)] and whenever I try to check the version of chromedriver (downloaded 2.30 from here, has enough privileges to run also because stat -c "%a %n" chromedriver gives 755 chromedriver ) using the command
chromedriver --version
I get the below error :
error while loading shared libraries: libgconf-2.so.4:
cannot open shared object file: No such file or directory
Also the result of ldd chromedriver is :
libgconf-2.so.4 => not found
I came to know that the above library is provided by GConf2 (refer here)
So I ran the command yum install Conf2
and I am stuck with the below error :
# yum install GConf2
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main | 2.1 kB 00:00:00
amzn-updates | 2.3 kB 00:00:00
No package GConf2 available.
Error: Nothing to do
Note :
I am running the commands as a root user!
Tried to do yum clean all
and yum update and updated all the packages and still getting the
error
Also tried yum provides */libgconf-2.so.4 , getting error : Loaded plugins: priorities, update-motd, upgrade-helper No matches found
I installed the Gconf2 following this

How to install gcc 4.7.3 on CentOS?

I want to install gcc 4.7.3 on centos, but I use yum search gcc like that:
yum search gcc
it show me too many information to choose:
gcc-c++.x86_64 : C++ support for GCC
gcc-gnat.x86_64 : Ada 95 support for GCC
gcc-objc.x86_64 : Objective-C support for GCC
gcc-objc++.x86_64 : Objective-C++ support for GCC
gcc-plugin-devel.x86_64 : Support for compiling GCC plugins
libgcc.i686 : GCC version 4.8 shared support library
libgcc.x86_64 : GCC version 4.8 shared support library
relaxngcc-javadoc.noarch : Javadoc for relaxngcc
compat-gcc-44.x86_64 : Compatibility GNU Compiler Collection
compat-gcc-44-c++.x86_64 : C++ support for compatibility compiler
I don't know which one is gcc 4.7.3. I want to write install to Dokcerfile, please tell me how to install it in simple way. just using command via Terminal
Then,I using the command:
yum instal gcc-4.7.3
It show :
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
base | 3.6 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
Loading mirror speeds from cached hostfile
* base: mirror.neu.edu.cn
* extras: mirror.neu.edu.cn
* updates: mirror.neu.edu.cn
No package gcc-4.7.3 available.
Error: Nothing to do
I believe it is not possible to get 4.7.3 with devtools, instead, the devtools package would install you a gcc version 4.7.2.
devtoolset-1.1 package contains gcc-4.7.2
Follow the below commands to install devtoolset.
cd /etc/yum.repos.d
wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo
yum --enablerepo=testing-1.1-devtools-6 install devtoolset-1.1-gcc devtoolset-1.1-gcc-c++
gcc is located in /opt/centos/devtoolset-1.0/root/usr/bin/ and so you will have to update $PATH
export PATH=/opt/centos/devtoolset-1.0/root/usr/bin/:$PATH
Now the gcc version should be version 4.7.2
You can check it using gcc -v command.
NOTE: There is an option for you download the source and build to get the latest changes in the devtoolset package.

Installing R on RHEL 6

my questions is similar to this one -
Problems installing R on Linux CentOS 6.3
I installed epel, but when I run yum install R, I get the two dependency problems -
Error: Package: R-core-3.0.1-2.el6.x86_64 (epel)
Requires: libjpeg.so.62(LIBJPEG_6.2)(64bit)
Error: Package: R-core-devel-3.0.1-2.el6.x86_64 (epel)
Requires: texinfo-tex
I tried installing texinfo-tex using the rpm file from -
http://rpm.pbone.net/index.php3/stat/4/idpl/15993086/dir/scientific_linux_6/com/texinfo-tex-4.13a-8.el6.x86_64.rpm.html
However, this takes me into a long tree of missing dependencies. I downloaded and tried installing 5 different rpm files and each time there were some missing dependencies. Ans this was just one branch of this tree of dependencies. I figured, there has got to be a better way. Can some one help? This has been driving me nuts.
Edit: Another option I'm trying is building R from source. Not sure if this will work given the missing packages though. For now however, it says it can't find a fortran compiler ("No F77 compiler found"). I installed gcc, thinking that it would have one, but apparently not.
on RHEL6.4 do
subscription-manager repos --enable rhel-6-server-optional-rpms
yum install texinfo-tex
rpm -ivh http://mirror.unl.edu/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install R
cheers Marten
I have the exact same problem and have spent about 3 hours attempting to find a yum repository out there for RHEL 6 that can solve this problem. So far, it appears that whoever added this dependency didn't actually try and install it once they added the dependency. These dependency mappings don't appear to exist anywhere in any repo that I can find.
…
So I got frustrated and tried this command
yum install texinfo-tex-4.13a-8.el6.x86_64.rpm
and it worked
Loaded plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
CentALT | 951 B 00:00
elrepo | 2.9 kB 00:00
epel/metalink | 13 kB 00:00
epel-testing/metalink | 13 kB 00:00
mongodb | 951 B 00:00
puppetlabs-enterprise-extras | 1.9 kB 00:00
remi | 2.9 kB 00:00
rhel-source | 2.5 kB 00:00
rhel-x86_64-server-6 | 1.8 kB 00:00
rpmforge | 1.9 kB 00:00
scl_python27 | 2.9 kB 00:00
scl_ruby193 | 2.9 kB 00:00
Setting up Install Process
Examining texinfo-tex-4.13a-8.el6.x86_64.rpm: texinfo-tex-4.13a-8.el6.x86_64
Marking texinfo-tex-4.13a-8.el6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package texinfo-tex.x86_64 0:4.13a-8.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
texinfo-tex x86_64 4.13a-8.el6 /texinfo-tex-4.13a-8.el6.x86_64 387 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total size: 387 k
Installed size: 387 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : texinfo-tex-4.13a-8.el6.x86_64 1/1
Verifying : texinfo-tex-4.13a-8.el6.x86_64 1/1
Installed:
texinfo-tex.x86_64 0:4.13a-8.el6
Complete!
# yum install R
Loaded plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package R.x86_64 0:3.0.1-2.el6 will be installed
--> Processing Dependency: R-devel = 3.0.1-2.el6 for package: R-3.0.1-2.el6.x86_64
--> Running transaction check
---> Package R-devel.x86_64 0:3.0.1-2.el6 will be installed
--> Processing Dependency: R-java-devel = 3.0.1-2.el6 for package: R-devel-3.0.1-2.el6.x86_64
--> Processing Dependency: R-core-devel = 3.0.1-2.el6 for package: R-devel-3.0.1-2.el6.x86_64
--> Running transaction check
---> Package R-core-devel.x86_64 0:3.0.1-2.el6 will be installed
---> Package R-java-devel.x86_64 0:3.0.1-2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
R x86_64 3.0.1-2.el6 epel 19 k
Installing for dependencies:
R-core-devel x86_64 3.0.1-2.el6 epel 90 k
R-devel x86_64 3.0.1-2.el6 epel 19 k
R-java-devel x86_64 3.0.1-2.el6 epel 19 k
Transaction Summary
================================================================================
Install 4 Package(s)
Total download size: 147 k
Installed size: 326 k
Is this ok [y/N]:
Installing R on 6.6 RHEL 64 bit machine
After going through many pages i found this steps, so thought to share as a quick steps:
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
"It's a package which is preferred for RHEL machine."
sudo yum install tcl
“The Tcl package contains the Tool Command Language, a robust general-purpose scripting language. This package is known to build and work properly using an LFS-7.7 platform. This package is known to build and work properly using the gcc-5 compiler.”
sudo yum clean all
“Cleans the yum cache”
sudo yum install R
“For installing R”
Try this one
rpm -ivh http://mirror.unl.edu/epel/6/x86_64/epel-release-6-7.noarch.rpm
The second is:
#yum install R
Thanks & Regards,
Alok
Try sudo yum groupinstall “Development Tools”
This installs development tools which includes all compilers.
I am also trying to install the same. Tried building from source. Now trying to build with yum. Let's see how it goes
"I tried this.. it said "package epel-release-6-8.noarch is already installed". "
But not enabled... See: https://bluehatrecord.wordpress.com/2014/10/13/installing-r-on-red-hat-enterprise-linux-6-5/
I was having the same issue, And many seem to be getting stuck on this.
The dependencies are available in the RedHat Repo [rhel-6-server-optional-rpms]. Enable the repo and R should install.

How can I solve this Sphinx search dependency issue?

I'm trying to install Sphinx search on a CentOS VPS via SSH but I keep getting dependency issues that I can't seem to resolve.
Here's the OS I'm using:
cat /etc/redhat-release
CentOS 6.4 (Final)
uname -a
Linux host.example.com 2.6.32-042stab074.10 #1 SMP Fri Mar 1 09:18:44 MSK 2013 i686 i686 i386 GNU/Linux
This to me looks like I need the 32-bit CentOS 6 rpm so I tried to install it with this command:
sudo yum install http://sphinxsearch.com/files/sphinx-2.0.8-1.rhel6.i386.rpm
but I get the following error message:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.advancedhosters.com
* extras: centos.mirror.constant.com
* updates: mirror.lug.udel.edu
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
updates | 3.4 kB 00:00
Setting up Install Process
sphinx-2.0.8-1.rhel6.i386.rpm | 5.6 MB 00:30
Examining /var/tmp/yum-root-oMekz6/sphinx-2.0.8-1.rhel6.i386.rpm: sphinx-2.0.8-1.rhel6.i386
Marking /var/tmp/yum-root-oMekz6/sphinx-2.0.8-1.rhel6.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package sphinx.i386 0:2.0.8-1.rhel6 will be installed
--> Processing Dependency: libmysqlclient.so.16 for package: sphinx-2.0.8-1.rhel6.i386
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: sphinx-2.0.8-1.rhel6.i386
--> Finished Dependency Resolution
Error: Package: sphinx-2.0.8-1.rhel6.i386 (/sphinx-2.0.8-1.rhel6.i386)
Requires: libmysqlclient.so.16
Error: Package: sphinx-2.0.8-1.rhel6.i386 (/sphinx-2.0.8-1.rhel6.i386)
Requires: libmysqlclient.so.16(libmysqlclient_16)
You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
frontpage-2002-SR1.2.i386 has missing requires of libexpat.so.0
sendmail-cf-8.14.4-8.el6.noarch has missing requires of sendmail = ('0', '8.14.4', '8.el6')
No matter what I try I always seem to be missing libmysqlclient.so.16.
Any idea where I can find this package?
yum install mysql-devel
should do it.
Install the remi repository:
[http://blog.famillecollet.com/pages/Config-en]
Enterprise Linux 6 (with EPEL) i386 or x86_64
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
then install compat-mysql51
yum --enablerepo=remi install compat-mysql51
then install sphinx from the rpm downloaded
yum localinstall sphinx-2.1.2-1.rhel6.SYSTEM-VERSION.rpm
Use the SphinxSearch docker files (docker hub link) to easily install SphinxSearch.
Grab it:
docker pull leodido/sphinxsearch:latest
If you want to see how to compile from source (which I recommend as the better mode to install SphinxSearch), look into them - e.g., here.

Resources