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
wget -O /etc/yum.repos.d/slc6-devtoolset.repo
yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++

Install Berkeley DB

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 install

Install ZeroMQ (from sources)

tar xzvf zeromq-4.0.3.tar.gz
cd zeromq-4.0.3
make install

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

yum install openssl openssl-devel

yum install libevent2-devel

useradd dash
passwd dash

Login as dash:

mkdir dashcore
cd dashcore
git clone -b v0.12.2.x
cd dash
add m4_pattern_allow(PKG_CONFIG_LIBDIR) to
source scl_source enable devtoolset-2

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

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


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?