lunes, 16 de octubre de 2017

Install PyQt4 Centos 7

yum install qt

# Install sip
Download: http://www.riverbankcomputing.com/software/sip/download
cd sip-4.19.3
python3 configure.py
make -j12
make install
cd ..

# Download PyQt4: http://www.riverbankcomputing.com/software/pyqt/download
cd PyQt4_gpl_x11-4.12.1
python3 configure-ng.py --qmake /usr/lib64/qt4/bin/qmake
make -j12
make install

Fix: gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory

Non-zero exit code (1):
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
error: command 'gcc' failed with exit status 1



FIX:

dnf install redhat-rpm-config

jueves, 12 de octubre de 2017

Install Python from sources (Fedora 26)

Primero descarga el XS tarball de aqui:

Luego intentando instalar python desde los sources me dió este error:
"Solve: zipimport.ZipImportError: can't decompress data; zlib not available"

Para solucionarlo:



Luego haces:
dnf install zlib-devel python-gzipstream.noarch openssl-devel
./configure
make -j12
make install


Probado en Fedora 26


Ref:
https://askubuntu.com/questions/661039/trouble-with-zip-support-in-custom-python-build-zipimport-zipimporterror-cant

sábado, 7 de octubre de 2017

Mount raspbian in SD

Descargar la img
https://www.raspberrypi.org/downloads/raspbian/

Luego ejecutas (cambiar sdd por el disco):

sudo dd bs=4M if=.
/2017-09-07-raspbian-stretch.img of=/dev/sdd conv=fsync status=progress