Installing xml2 on CENTOS 6.9 x86_64 error - centos

I get the following when I try
install.packages("xml2")
bash: syntax error near unexpected token `"xml2"'
or
devtools::install_github("hadley/xml2")
bash: syntax error near unexpected token `"hadley/xml2"'
I have installed
R version 3.3.3 (2017-03-06) -- "Another Canoe"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)

Do you mean the libxml2?
If so you need to insatll first the EPEL repository and the libxml2 via yum.
Please follow this page:
https://www.google.at/amp/sharadchhetri.com/2014/05/24/how-to-install-libxml2-and-libxslt-packages-on-centos-6-5/amp/

Related

How to fix missing package for MYSQL 8.0 on CENTOS 7

Summary
I try to install MYSQL community edition 8.0 on my Amazon Linux server
Command i have done so far
cd /home/ec2-user
wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.16-2.el7.x86_64.rpm-bundle.tar
tar -xvf mysql-8.0.16-2.el7.x86_64.rpm-bundle.tar
rpm -ivh mysql-community-server-8.0.16-2.el7.x86_64.rpm
I get the following error :
error: Failed dependencies:
libsasl2.so.3()(64bit) is needed by mysql-community-server-8.0.16-2.el7.x86_64
systemd is needed by mysql-community-server-8.0.16-2.el7.x86_64
What i tried by now
The library libsasl2.so.3()(64bit) is included in cyrus-sasl-lib
I tried to install it but still the same result
Here is the command i tried : sudo yum install cyrus-sasl-lib
Operating System
Linux ip-172-31-86-163 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Expected Result :
Success
Error Message i have :
Failed dependencies:
libsasl2.so.3()(64bit) is needed by mysql-community-server-8.0.16-2.el7.x86_64
try
yum install /path/to/mysql-8...rpm
then yum will try to find the dependencies you need. If some dependencies cannot be found, you can try downloading them yourself, or enabling repositories. But be careful since you are trying to install recent software on an old os... I don't know if amazon has centos8 machines already, otherwise that would probably help you out :)

Valet-plus : how to install mcrypt with php7.2 or php7.1

Pre-Condition
Magento 2.2.6
Mac Os
Php7.1 or Php7.2
main.CRITICAL: Warning: Use of undefined constant MCRYPT_BLOWFISH -
assumed 'MCRYPT_BLOWFISH' (this will throw an Error in a future
version of PHP) in
/Users/Anant/Desktop/Anant/Projects/cheapsheds/vendor/magento/framework/Encryption/Encryptor.php
on line 397 {"exception":"[object] (Exception(code: 0): Warning: Use
of undefined constant MCRYPT_BLOWFISH - assumed 'MCRYPT_BLOWFISH'
(this will throw an Error in a future version of PHP) in
/Users/Anant/Desktop/Anant/Projects/cheapsheds/vendor/magento/framework/Encryption/Encryptor.php
on line 397 at
/Users/Anant/Desktop/Anant/Projects/cheapsheds/vendor/magento/framework/App/ErrorHandler.php:61)"}
[]
This is coming due to missing mcrypt module in php so, Can you please know me how i installed it using valet plus
To install mcrypt on Valet Plus, run in Terminal:
brew install mcrypt
pecl install mcrypt
Check it has installed with:
php -m | grep mcrypt

How to install all dependecies while using YUM in centos

I am trying to install mongo db and to do that stdlibc++ dependencies are needed which are hard to get. so i need a command which can install all the needed dependencies by itself. Please help me on this.
uname -a
gives
Linux sscent-03.local 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
and the error is like,
Error: Package: libcddb-1.3.2-12.el7.nux.x86_64 (nux-dextop)
Requires: libcdio.so.15(CDIO_15)(64bit)
Error: libcmpiCppImpl0 conflicts with 2:tog-pegasus-2.12.0-3.el6_4.x86_64
Error: Package: libcddb-1.3.2-12.el7.nux.x86_64 (nux-dextop)
Requires: libcdio.so.15()(64bit)
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
libstdc++-4.8.3-9.el7.x86_64 is a duplicate with libstdc++-4.4.7-11.el6.x86_64
libstdc++-4.8.3-9.el7.x86_64 has missing requires of libc.so.6(GLIBC_2.14)(64bit)
Thanks,
Manirathinam M.

yum command : python version mismatch

I have Red Hat Linux (Red Hat Enterprise Linux Server release 6.5 (Santiago) ) and yum in not working with message
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.8 (default, Nov 7 2014, 11:45:08)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Current version of python is 2.7.8
Any help is appreciated.
CentOS 6 ships with python 2.6. Someone installed an incompatible version of python system-wide and that has broken things. That should not have been done.
You need to find out how the 2.7 version of python was installed and fix that (by removing the incorrect package or by removing the source-installed python or by fixing the $PATH or whatever else is appropriate).
To help figure out what the problem is exactly we need the output from the following commands (as a start).
What does rpm -qa python\* say?
What does which -a python say?

Casperjs error - invalid syntax error

I recently installed Casperjs on server (centos) and when I try to run I get the following error:
File "/usr/local/bin/casperjs", line 11
except subprocess.CalledProcessError as err:
^
SyntaxError: invalid syntax
This is the result of running "casperjs --version" which should just print the version number. Although any other commands with casperjs also give the same output.
The steps that I followed to install are pretty standard:
git clone git://github.com/n1k0/casperjs.git
cd casperjs
git checkout tags/1.0.2
ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs
Also, I'm running version 1.9.6 of phantomjs which is required for casperjs.
Any ideas?
You could check if the version of python is greater than 2.6 or not
for my case , I type the command
python -v
and I get 2.4.3 on the old online redhat machine .
than you could try update your python version .
It might some help