Saturday, September 02, 2017

Install Dash node from sources on Centos 6

As root:

cat /etc/centos-release
CentOS release 6.9 (Final)

yum -y install wget
yum update -y && reboot

yum groupinstall 'Development Tools'
yum install pkgconfig


rpm --import http://linuxsoft.cern.ch/cern/slc6X/x86_64/RPM-GPG-KEY-cern
wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++


Install Berkeley DB

wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar -xzvf db-4.8.30.NC.tar.gz
cd ./db-4.8.30.NC
cd build_unix
../dist/configure --prefix=/usr  --enable-compat185  --enable-dbm --disable-static --enable-cxx
make
make install






Install ZeroMQ (from sources)

wget https://archive.org/download/zeromq_4.1.4/zeromq-4.1.4.tar.gz
tar xzvf zeromq-4.0.3.tar.gz
cd zeromq-4.0.3
./configure
make
make install



yum install boost boost-doc
wget http://repo.enetres.net/enetres.repo -O /etc/yum.repos.d/enetres.repo
yum install boost-devel

yum install openssl openssl-devel

wget ftp://mirror.switch.ch/pool/4/mirror/centos/6.9/os/x86_64/Packages/libevent2-devel-2.0.21-2.el6.x86_64.rpm
yum install libevent2-devel

useradd dash
passwd dash


Login as dash:

mkdir dashcore
cd dashcore
git clone https://github.com/dashpay/dash -b v0.12.2.x
cd dash
add m4_pattern_allow(PKG_CONFIG_LIBDIR) to configure.ac
./autogen.sh
source scl_source enable devtoolset-2


export PKG_CONFIG_PATH=/usr/lib/pkgconfig/   (for ZeroMQ lib)
./configure


you need to make sure you have more than 5Go free RAM

make

Prestashop ERROR Message "You already have the maximum quantity available for this product"

When adding a product to cart on front-end, you have this error message in the POST RESPONSE:
"You already have the maximum quantity available for this product"
This could come from many different reasons but one of them could that your MySQL database is in force recovery mode.

You may also encounter the following error in phpmyadmin when trying to import data:
Operation not allowed when innodb_forced_recovery > 0.
So find your my.cnf configuration file (on osx it's in /opt/local/etc/mysql56/my.cnf) and comment out following line
# innodb_force_recovery = 1
Then restart your database.

Example on osx:
launchctl unload -w /Library/LaunchDaemons/org.macports.mysql56-server.plist
launchctl load -w /Library/LaunchDaemons/org.macports.mysql56-server.plist

This page is powered by Blogger. Isn't yours?