when to use fabric or ansible?

Does it make sense using both fabric and ansible tools somehow? Yes. All your logic should live in Ansible and you can use Fabric as a lightweight wrapper around it. fab deploy is easier to remember than, e.g. ansible-playbook -v –inventory=production –tags=app site.yml Is it possible to use ansible from my windows development environment to … Read more

/lib64/libc.so.6: version `GLIBC_2.14′ not found. Why am I getting this error?

You need to install glibc alongside your current installation of glibc as you cannot update to glibc 2.14 directly in centos 6.x safely. Follow the steps below to install glibc 2.14: mkdir ~/glibc214 cd ~/glibc214 wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz tar zxvf glibc-2.14.tar.gz cd glibc-2.14 mkdir build cd build ../configure –prefix=/opt/glibc-2.14 make -j4 sudo make install export LD_LIBRARY_PATH=/opt/glibc-2.14/lib … Read more

Ffmpeg error in linux [closed]

Basically, to find the file: sudo find / -name libavdevice.so.52 For example, you’ve found this file in the /usr/local/lib. Next include that library into your library path. Add this to your /etc/ld.so.conf: /usr/local/lib And finally after modifying this file run this: sudo ldconfig Reference: Ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object … Read more

Login disallowed for security reasons postgresql centos server

1). Open -> /etc/phppgadmin -> config.inc.php 2). change $conf[‘extra_login_security’] = true; to $conf[‘extra_login_security’] = false; // If extra login security is true, then logins via phpPgAdmin with no // password or certain usernames (pgsql, postgres, root, administrator) // will be denied. Only set this false once you have read the FAQ and // understand how … Read more

How to upgrade glibc from version 2.12 to 2.14 on CentOS?

You cannot update glibc on Centos 6 safely. However you can install 2.14 alongside 2.12 easily, then use it to compile projects etc. Here is how: mkdir ~/glibc_install; cd ~/glibc_install wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz tar zxvf glibc-2.14.tar.gz cd glibc-2.14 mkdir build cd build ../configure –prefix=/opt/glibc-2.14 make -j4 sudo make install export LD_LIBRARY_PATH=/opt/glibc-2.14/lib

Python, how to handle the “ValueError: unsupported pickle protocol: 4” error?

The Pickle protocol is basically the file format. From the documentation, The higher the protocol used, the more recent the version of Python needed to read the pickle produced. … Pickle protocol version 4 was added in Python 3.4, your python version (2.7.5) does not support this. Either upgrade to Python 3.4 or later (current … Read more