Orange Forum • View topic - Orange cannot install on Ubuntu 12.04

Orange cannot install on Ubuntu 12.04

A place to ask questions about methods in Orange and how they are used and other general support.

Orange cannot install on Ubuntu 12.04

Postby wangh3 » Mon Sep 17, 2012 16:53

I did use several methods for install Orange
1.easy_install orange
failed
2.Download nightly buids from this link orange.biolab.si/download/orange-source-snapshot-hg-2012-09-17.zip
cd Orange-2.6a2
python setup.py build
failed

and I did try all solution on topic "http://orange.biolab.si/forum/viewtopic.php?f=4&t=1668",it didnt solve the problem.
I got errors like below all the times:

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]

Anyone knows any idea about what is wrong here.:?
Thank you.

Re: Orange cannot install on Ubuntu 12.04

Postby Ales » Mon Sep 17, 2012 17:14

wangh3 wrote:cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
That is a warning not an error (it is expected when building c++ extensions with python's distutils) and can be ignored.
Does the build otherwise fail? If so what is the full output log?

Re: Orange cannot install on Ubuntu 12.04

Postby wangh3 » Mon Sep 17, 2012 17:34

Ales wrote:
wangh3 wrote:cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
That is a warning not an error (it is expected when building c++ extensions with python's distutils) and can be ignored.
Does the build otherwise fail? If so what is the full output log?

Parsing lib_kernel.cpp
Parsing lib_components.cpp
Parsing lib_preprocess.cpp
Parsing lib_learner.cpp
Parsing lib_io.cpp
Parsing lib_vectors.cpp
Parsing cls_example.cpp
Parsing cls_value.cpp
Parsing cls_orange.cpp
Parsing cls_misc.cpp
Parsing functions.cpp
Parsing orange.cpp
Warning: class 'PearsonCorrelation' will not be picklable
Warning: class 'ItemsetNodeProxy' will not be picklable
Creating lib_kernel.px
Creating lib_components.px
Creating lib_preprocess.px
Creating lib_learner.px
Creating lib_io.px
Creating lib_vectors.px
Creating cls_example.px
Creating cls_value.px
Creating cls_orange.px
Creating cls_misc.px
Creating functions.px
Creating orange.px
Creating displaynames
Creating externs.px
Creating initialization.px
Creating orange_globals.hpp
creating build/temp.linux-i686-2.7/source/orange
creating build/temp.linux-i686-2.7/source/orange/blas
creating build/temp.linux-i686-2.7/source/orange/linpack
creating build/temp.linux-i686-2.7/source/orange/liblinear
creating build/temp.linux-i686-2.7/source/orange/libsvm
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -I/usr/lib/pymodules/python2.7/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/imputation.cpp -o build/temp.linux-i686-2.7/source/orange/imputation.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -I/usr/lib/pymodules/python2.7/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/transval.cpp -o build/temp.linux-i686-2.7/source/orange/transval.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -I/usr/lib/pymodules/python2.7/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/cartesian.cpp -o build/temp.linux-i686-2.7/source/orange/cartesian.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -I/usr/lib/pymodules/python2.7/numpy/core/include -Isource/include -Isource/orange/liblinear -Isource/orange/ppp -Isource/orange/px -I/usr/include/python2.7 -c source/orange/lib_kernel.cpp -o build/temp.linux-i686-2.7/source/orange/lib_kernel.o -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]

The last part repeat all the time,no progress.I let it run about an hour and it keep repeating and I terminated it.

Re: Orange cannot install on Ubuntu 12.04

Postby Ales » Wed Sep 19, 2012 16:33

I still have no idea what the problem could be.
Does it always get stuck on that same file (lib_kernel.cpp).
Does
Code: Select all
python build_ext --dry-run
complete successfully?
What version of gcc are you using?
Are you by any chance using any caching compiler wrapper (for instance ccache)?
Also can you try compiling with clang complier ('sudo apt-get install clang') by running
Code: Select all
export CC=clang
export CXX=clang
export CPPFLAGS=-Wno-address-of-temporary
python setup.py clean
python setup.py build
Does it also get stuck at the same file?

Re: Orange cannot install on Ubuntu 12.04

Postby lampapos » Sun Sep 23, 2012 10:42

I've met the same problem (i'm running Ubuntu 12.04) with GCC. Clang helps.

Also I had to install a few of additional packages:
Code: Select all
sudo apt-get install python-qt4
sudo apt-get install python-dev
sudo apt-get install python-numpy


It's trivial to find this packages but maybe someone will save couple minutes (;

Re: Orange cannot install on Ubuntu 12.04

Postby Manoj » Mon Sep 24, 2012 17:00

Im also facing the same problem in Ubuntu 12.04. Ive installed all dependencies mentioned and ive tried all methods mentioned above including Clang

And when I try

cd source
make

I get the following error

make: *** No targets specified and no makefile found. Stop.

It would be nice if someone could help , because I can hardly wait to use Orange . Thanks in advance.

Re: Orange cannot install on Ubuntu 12.04

Postby Manoj » Mon Sep 24, 2012 20:12

I finally installed Orange

Add the following lines in your /etc/apt/sources.list file

Code: Select all
deb http://orange.biolab.si/debian squeeze main
deb-src http://orange.biolab.si/debian squeeze main


and do aptitude install-orange canvas . It works :D

Re: Orange cannot install on Ubuntu 12.04

Postby kuurt » Sat Oct 20, 2012 0:11

Re: Manoj
So it works now for you Manoj? I have the same error: Could you please elaborate on your solution? Specifically, (1) Where is the file /etc/apt/sources.list and (2) how exactly did you modify it? I have tried all other fixes above and still cannot get Orange running on Ubuntu 12.04 due to the


Return to Questions & Support



cron