Can anyone help me with this script?

General support questions
Post Reply
RedDynasty3
Posts: 1
Joined: 2019/07/16 22:56:43

Can anyone help me with this script?

Post by RedDynasty3 » 2019/07/16 22:59:59

So, I was using Debian 8 to run a script to install things on Debian 8 to work with 32 lib apps. Now I'm on CentOS 6.10 and I need to make this libs work, but I really don't know how to find them for Centos 6.

Heres the script I was using:

Code: Select all

apt-get update
apt-get install -y curl openjdk-7-jre apache2 mysql-server php5 php5-mysql php5-curl php5-cli php5-gd phpmyadmin libsvn-java
if [[ `uname -m` == "x86_64" ]]; then
	dpkg --add-architecture i386
	apt-get update
	apt-get -y install lib32z1 lib32ncurses5
fi
apt-get install -y libgtk2.0-0:i386 libidn11:i386 gstreamer0.10-pulseaudio:i386 gstreamer0.10-plugins-base:i386 gstreamer0.10-plugins-good:i386
echo -e '\r'
echo "All required packages installed..."
echo -e '\r'
exit 0

yum install php-curl php-cli php-gd phpmyadmin 
I know how to install Java 7, Apache (Httpd), mysql server and the phps. Libsvn-java I have installed, but don't know if it works.

How can I find the correct packages for the i386 libs that are in the script?

User avatar
TrevorH
Forum Moderator
Posts: 26525
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can anyone help me with this script?

Post by TrevorH » 2019/07/17 10:26:22

Your current script won't be of much use to you on CentOS as it does not use apt-get, it uses yum. Also, all package names between the 2 distros are probably different - you might find the occasional thing that's called the same name but not often.

On CentOS you want to install packages that end with .i686 to get 32 bit support.

So in your package list, you probably want to yum install curl.i686 java-1.8.0-openjdk-headless.i686 httpd php php-mysql php-cli php-gd php-curl subversion-javahl.i686 ncurses-devel.i686 gtk2-devel.i686 libidn.i686 gstreamer.i686 gstreamer-plugins-bad-free.i686 gstreamer-plugins-good.i686

Please note that you cannot install 32 bit versions of some of those packages as we do not ship them. For example, http and all php packages are x86_64 only. I've made guesses as to the correct package names in some cases and in others - like java - I have substituted the nearest equivalent - we don't ship any 32 bit java 1.7 packages so I used 1.8.0 instead.

If you know a filename that is provided by one of your Debian packages then you can ask yum to tell you what package ships that file on CentOS. For example, dpkg -S curl on Debian 9 shows me that it ships /usr/lib/${arch}/libcurl.so.4 so you can plug that info into yum provides '*/libcurl.so.4' and yum will list any packages that provide that file pattern.

We do not ship mysql, we ship the fork "mariadb" instead. They are functionally equivalent and require no client changes.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Whoever
Posts: 1074
Joined: 2013/09/06 03:12:10

Re: Can anyone help me with this script?

Post by Whoever » 2019/07/19 03:11:09

TrevorH wrote:
2019/07/17 10:26:22

We do not ship mysql, we ship the fork "mariadb" instead. They are functionally equivalent and require no client changes.
Isn't that on CentOS 7, not 6?

User avatar
TrevorH
Forum Moderator
Posts: 26525
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can anyone help me with this script?

Post by TrevorH » 2019/07/19 10:22:58

True. But then I wouldn't be installing CentOS 6 and moving from Debian 8 to it.

To quote to bot in the #centos IRC channel:

CentOS 6 entered Maintenance Support 2 (see https://access.redhat.com/support/polic ... es/errata/ ) on May 10th 2017 and now only receives critical updates. It will go EOL on 30 Nov, 2020 -- in 1 year, 19 weeks, 1 day, 13 hours, 37 minutes, and 31 seconds
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - General Support”