forked from aubreyja/ww_install
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_prerequisites.sh
More file actions
executable file
·14 lines (13 loc) · 1.33 KB
/
Copy pathinstall_prerequisites.sh
File metadata and controls
executable file
·14 lines (13 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
if [ -e "/etc/redhat-release" ]
then
sudo yum install dvipng gcc libapreq2 mod_perl mysql-server perl-DateTime perl-Email-Address perl-GD perl-GDGraph perl-LDAP perl-libapreq2 perl-Locale-Maketext-Lexicon perl-Mail-Sender perl-PHP-Serialization perl-PadWalker perl-SOAP-Lite perl-SQL-Abstract perl-String-ShellQuote perl-Tie-IxHash system-config-services tex-preview uuid-perl perl-IPC-Cmd perl-Term-UI git subversion perl-Exception-Class perl-Net-IP perl-XML-Parser
cpan install XML::Parser::EasyTree Iterator Iterator::Util Pod::WSDL UUID::Tiny
sudo service start mysqld.service
sudo /usr/bin/mysql_secure_installation
elif [ -e "/etc/debian_version" ]
then
sudo apt-get install apache2 apache2-mpm-prefork dvipng gcc libapache2-request-perl libdatetime-perl libdbd-mysql-perl libemail-address-perl libexception-class-perl libextutils-xsbuilder-perl libgd-gd2-perl liblocale-maketext-lexicon-perl libmail-sender-perl libmime-perl libnet-ip-perl libnet-ldap-perl libossp-uuid-perl libpadwalker-perl libphp-serialization-perl libsoap-lite-perl libsql-abstract-perl libstring-shellquote-perl libtimedate-perl libuuid-tiny-perl libxml-parser-perl libxml-writer-perl make mysql-server netpbm openssh-server preview-latex-style subversion texlive unzip
else
echo "I don't know what packages you need. Fork me to fix this!"
fi