Error while make for pyotherside - python-3.x

I want to install pyotherside for my ubuntu 14.10, so I did:
git clone https://github.com/thp/pyotherside.git
cd pyotherside
sudo qmake
which succeeds, but when I do:
sudo make
it says:
cd src/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /usr/src/pyotherside/src/src.pro -o Makefile ) && make -f Makefile
Project MESSAGE: PYTHON_CONFIG = python3-config
Project ERROR: Unknown module(s) in QT: quick qml
Makefile:39: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 3
How can I solve this?

I figured it out afterwards.
Ubuntu 14.10 has a QT5 already installed, but it is QT5.0 and you should manually change to QT5.4 you installed.
sudo home/X/Qt/5.4/gcc_64/bin/qmake
This works perfectly.

Related

Building GRPC on Ubuntu 3.13.0-163-generic is failing to compile

I am building GRPC in ubunut 3.13.0-163-generic from the source using make. I am getting the following error:
[GRPC] Generating gRPC's protobuf service CC file from src/proto/grpc/channelz/channelz.proto
[libprotobuf FATAL google/protobuf/generated_message_util.cc:794] CHECK failed: (scc->visit_status.load(std::memory_order_relaxed)) == (SCCInfoBase::kRunning):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (scc->visit_status.load(std::memory_order_relaxed)) == (SCCInfoBase::kRunning):
--grpc_out: protoc-gen-grpc: Plugin killed by signal 6.
make: *** [/home/iadk/gokul/grcpcpp/grpc/gens/src/proto/grpc/channelz/channelz.grpc.pb.cc] Error 1
Why is GPRC failing to compile and how do I fix it?
Ubuntu 3.13.0-163-generic : That would be Ubuntu 14.04 . The default gcc 4.8 fails with GRPC. Download gcc48-c++_4.8.4-2ubuntu14_amd64.deb https://drive.google.com/drive/folders/1xVEATaYAwqvseBzYxKDzJoZ4-Hc_XOJm?usp=sharing ... The Ubuntu gcc 4.8 is patched with 163 patches. gcc48-c++_4.8.4-2ubuntu14 : None.
Install the compiler
$ sudo gdebi Downloads/gcc48-c++_4.8.4-2ubuntu14_amd64.deb
GRPC
$ sudo apt-get install g++ make autoconf libtool pkg-config libgflags-dev libgtest-dev
$ git clone https://github.com/grpc/grpc.git
$ cd grpc/
$ git submodule update --init
Edit the Makefile to gcc48, g++48 ... line 50 - 55 :
DEFAULT_CC = gcc48
DEFAULT_CXX = g++48
else
ifeq ($(HAS_GCC),true)
DEFAULT_CC = gcc48
DEFAULT_CXX = g++48
grpc/ :
$ make // no errors
$ sudo make install
Note : git clone https://github.com/grpc/grpc.git is important. The "curl" command mentioned in the original
grpc/BUILDING.md can now provide a no-good result.

Install Qt 4 ubuntu 17.04

I need to install Qt 4 in my computer to run a specific software. I've download Qt 4.8.6 from: https://download.qt.io/archive/qt/4.8/4.8.6/.
I followed the steps from the link http://doc.qt.io/qt-4.8/install-x11.html, but after I use make (step 3) I received the message:
Makefile:1624: recipe for target 'obj/release/pcre_exec.o' failed
make[1]: * [obj/release/pcre_exec.o] Error 1
make[1]: Leaving directory '/usr/lib/qt/src/script'
Makefile:602: recipe for target 'sub-script-make_default-ordered' failed
make: * [sub-script-make_default-ordered] Error 2
I've already tried this recomendations from the software (that I want to install after installed Qt4), and I stop at the same make command.
Installation example (bash notation):
VERS="4.x.y" # Set Qt version number
SRCDIR="${HOME}/src" # Set path for source files
mkdir $SRCDIR
cd $SRCDIR
SRC="http://origin.releases.qt-project.org/qt4/source"
wget -N $SRC/qt-everywhere-opensource-src-$VERS.tar.gz
tar -xzvf qt-everywhere-opensource-src-$VERS.tar.gz
cd qt-everywhere-opensource-src-$VERS
INSTDIR="/usr/local"
PLATFORM="linux-g++-64"
O1="-release -opensource -static"
O2="-qt-zlib -no-gif -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg"
NO="-nomake examples -nomake demos -nomake docs -nomake translations"
./configure $O1 $O2 $NO -prefix $INSTDIR/qt_$VERS -platform $PLATFORM
# Confirm the license agreement
Someone knows how to proceed?
Thanks.
Ubuntu 17.04 has it in repositories:
sudo apt install qt4-default
If you want to install qt creator(IDE) then just issue the following command
sudo apt install qt4-default
sudo apt install qtcreator

How to install Petite Chez Scheme on Ubuntu?

How to install Petite Chez Scheme on Ubuntu?
I run Ubuntu 15.10 and try to install pcsv8.4-a6le.tar.gz (non-threaded, 64 bit) for Linux.
After having unpacked this tar in /usr/locale, I enter the commands
sudo ./configure
sudo make install
from within the custom directory.
However, instead of a clean install, I get the following errors (which I hope someone can help me out with):
nlykkei#nlykkei-Studio-XPS-1640:/usr/local/csv8.4/custom$ sudo make install
if [ yes = no ]; then if [ ! -f ./scheme ]; then /bin/rm -f ./scheme; ln -s ../bin/a6le/scheme ./scheme; fi; fi
if [ ! -f ./petite ]; then /bin/rm -f ./petite; ln -s ./scheme ./petite; fi
/bin/rm -f ./scheme
echo "const char *S_date_stamp = \"`date +%m%d%Y%H%M%S`\";" > datestamp.c
gcc -m64 -rdynamic -o ./scheme datestamp.c ../boot/a6le/kernel.o ../boot/a6le/custom.o -lm -ldl -lncurses -lrt
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
Mf-a6le:22: recipe for target 'scheme' failed
make[2]: *** [scheme] Error 1
Makefile:47: recipe for target 'buildpetite' failed
make[1]: *** [buildpetite] Error 2
Mf-install:64: recipe for target 'install' failed
make: *** [install] Error 2
On recent versions of Ubuntu (and future versions of Debian e.g. "Buster", and other Debian based distros), you can install Chez Scheme directly from the repo(s) by:
sudo apt install chezscheme
Previously you had to install it by compiling from source. Chez Scheme has been open source, for a few years now, and can be compiled from source, if it is not directly installable from the distribution's repo(s). Just download the source code compile and install. This will install not just the "petite" runtime version but also the full compiler. You can compile and install the software with:
./configure
sudo make install
Full build and install instructions are available here.
Pre-requisites for building are:
GNU Make
GCC
Header files and libraries for ncurses
Header files and libraries for X windows
On Ubuntu, install the libncurses5-dev package to get libncurses.so. (You can discover this by visiting http://packages.debian.org/file:libncurses.so (sadly, this doesn't seem to work for http://packages.ubuntu.com/file:libncurses.so).)
You may find other linkage errors if Chez requires other libraries to have development packages installed too. Use the same technique as above.
Go directly building from their Github.
ChezScheme
And then just do
./configure
sudo make install
Prerequisites according to Building are:
GNU Make
gcc
Header files and libraries for ncurses
Header files and libraries for X windows
And yes in case On Ubuntu, install the libncurses5-dev as Chris stated. Did just that and have no errors shown in clean install.
Chez Scheme has been open sourced since this question was asked. Since Bionic (18.04LTS) the full chezscheme is available as a repository.
First do
sudo apt update
then install the package:
sudo apt install chezscheme
This provides both the petite interpreter and the full scheme compiler.
There is also a PPA for trusty and xenial here:
https://launchpad.net/~jonathonf/+archive/ubuntu/lisp?field.series_filter=
Download the RPM package instead and use alien from terminal to produce a deb file:
fakeroot alien PetiteChezScheme-8.4-1.x86_64.rpm
You may need to install fakeroot, alien for this to work:
apt-get install fakeroot alien
Then you'll have a deb file. If you are on a desktop you can just double click the file and it will open Software Center and you can click install and it will fix your dependency problems.

Caffe compilation fails: make: *** [.build_release/src/caffe/data_transformer.o] Error 1

I am trying to build caffe after the instructions on http://caffe.berkeleyvision.org/installation.html#prerequisites
When compiling i get the following error:
(I use Fedora 22)
$make all
CXX src/caffe/data_transformer.cpp
In file included from ./include/caffe/blob.hpp:8:0,
from ./include/caffe/data_transformer.hpp:6,
from src/caffe/data_transformer.cpp:6:
./include/caffe/common.hpp:5:27: fatal error: gflags/gflags.h: No such file or directory
compilation terminated.
Makefile:516: recipe for target '.build_release/src/caffe/data_transformer.o' failed
make: *** [.build_release/src/caffe/data_transformer.o] Error 1
What am i doin wrong?
You have to install missing dependencies (gflags).
Fedora/RHEL/CentOS: sudo yum install gflags-devel
Ubuntu: sudo apt-get install libgflags-dev
There are also instructions for other dependencies:
Fedora/RHEL/CentOS :http://caffe.berkeleyvision.org/install_yum.html
Ubuntu: http://caffe.berkeleyvision.org/install_apt.html
To install missing gflag dependencies
wget https://github.com/schuhschuh/gflags/archive/master.zip
unzip master.zip
cd gflags-master
mkdir build && cd build
export CXXFLAGS="-fPIC" && cmake .. && make VERBOSE=1
make
sudo make install

Squid source code directory renaming gives "aclocal-1.14" missing error during make clean

I have a squid source code dir, which works fine for ./configure && make clean as below
cd /opt/squid-3.5.4
./configure && make clean
now when I create a copy of the dir & try to do ./configure && make clean, I get an error
cp -r /opt/squid-3.5.4 /opt/squid-3.5.4_BKUP
cd /opt/squid-3.5.4_BKUP
./configure && make clean
.....
.....
.....
make[2]: Leaving directory `/opt/squid-3.5.4_BKUP/lib'
make[1]: Leaving directory `/opt/squid-3.5.4_BKUP/lib'
Making clean in libltdl
make[1]: Entering directory `/opt/squid-3.5.4_BKUP/libltdl'
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /opt/squid-3.5.4_BKUP/libltdl/config/missing aclocal-1.14 -I m4
/opt/squid-3.5.4_BKUP/libltdl/config/missing: line 81: aclocal-1.14: command not found
WARNING: 'aclocal-1.14' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make[1]: *** [aclocal.m4] Error 127
make[1]: Leaving directory `/opt/squid-3.5.4_BKUP/libltdl'
make: *** [clean-recursive] Error 1
Machine details:
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
aclocal --version
aclocal (GNU automake) 1.11.1
It says aclocal-1.14 is missing, but in dir /opt/squid-3.5.4 it works fine with current aclocal version.
Could somebody tell me how can build (/make) in renamed dir
PS: After some google search, I've tried doing below
cd /opt/squid-3.5.4_BKUP
touch configure.ac aclocal.m4 configure Makefile.am Makefile.in
autoreconf -ivf
but no luck.
looks like i had to do:
cd /opt/squid-3.5.4_BKUP/libltdl/
touch configure.ac aclocal.m4 configure Makefile.am Makefile.in

Resources