Orange Forum • View topic - Improving Linux Support

Improving Linux Support

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

Improving Linux Support

Postby jgilbert » Sat Feb 19, 2005 4:26

I can't help but assume that your lab is basically a Windows shop. The reason I say this is that the handling of configuration files under Linux is a nightmare.

Install Orange. Run Orange. Get an error since you can't create a file at (canvasDlg.canvasDir + "/outputLog.htm")

The basic problem is that under Windows all users can write to the Python site-packages hierarchy. This allows you to save your settings in the OrangeCanvas directory. Under Linux, we assume that multiple users run on a single box. Thus, each should store their configuration files in their home directory (~/.orange/).

I use Linux (Debian preferably, Fedora Core 3 when I have to). I would love for Orange to work better under Linux. Installation is also problematic, at best.

I work for the Computational Genetics Lab at Dartmouth (check my sig) and we're interested in using Orange. So I'm willing to put in a bit of time helping Orange along.

So, what is the next step? Who should I contact? Normally, I would join the dev mailing list and start submitting patches. Here, that isn't possible as I have found no such thing.

I would like my patches to be accepted upstream (in the main distribution). I think that Linux support should be one of the priorities, based on what I'm seeing on the forum.

Postby Blaz » Tue Feb 22, 2005 15:58

You're right.

We will change the directory for configuration files as you suggest.

For linux installation, we gladly accept your offer -- Tomaz will contact you regarding this.

Postby Gregor Leban » Mon Mar 07, 2005 18:20

Orange Canvas and Widgets are now changed so that they create all files in the user.home + "/Orange" folder. The next snapshot installation (8.3.2005) will contain the changes and will hopefully solve your problem.

If not, please contact me by mail.

Best regards,
Gregor

Postby Repton » Fri Mar 11, 2005 4:40

I just attempted to compile under linux ---

it said:
Code: Select all
(for MODULE in include orange orangeom orangene corn statc ; \
   do make all -C $MODULE OLD=../..; done)
make[1]: Entering directory `/usr/src/orange/source/include'
make[1]: Leaving directory `/usr/src/orange/source/include'
make[1]: Entering directory `/usr/src/orange/source/orange'
g++ -fPIC -fpermissive -w -DLINUX -O3 -DNO_NUMERIC -c gslconversions.cpp -o obj/gslconversions.o
gslconversions.cpp:22:28: gsl/gsl_matrix.h: No such file or directory
gslconversions.cpp:23:28: gsl/gsl_vector.h: No such file or directory
gslconversions.cpp:35: error: syntax error before `*' token
gslconversions.cpp:162: error: type specifier omitted for parameter `gsl_matrix
   '
gslconversions.cpp:162: error: parse error before `*' token
gslconversions.cpp: In function `void exampleGenerator2gsl(...)':
gslconversions.cpp:167: error: `egen' undeclared (first use this function)
gslconversions.cpp:167: error: (Each undeclared identifier is reported only
   once for each function it appears in.)
gslconversions.cpp:167: error: `weightID' undeclared (first use this function)
gslconversions.cpp:167: error: `contents' undeclared (first use this function)
gslconversions.cpp:167: error: `multiTreatment' undeclared (first use this
   function)
gslconversions.cpp:168: error: `columns' undeclared (first use this function)
gslconversions.cpp:170: error: `rows' undeclared (first use this function)
gslconversions.cpp:172: error: `X' undeclared (first use this function)
gslconversions.cpp:172: error: `gsl_matrix_calloc' undeclared (first use this
   function)
gslconversions.cpp:173: error: `y' undeclared (first use this function)
gslconversions.cpp:173: error: `gsl_vector_calloc' undeclared (first use this
   function)
gslconversions.cpp:174: error: `w' undeclared (first use this function)
gslconversions.cpp:197: error: `gsl_matrix_set' undeclared (first use this
   function)
gslconversions.cpp:235: error: `gsl_vector_set' undeclared (first use this
   function)
gslconversions.cpp:244: error: `gsl_matrix_free' undeclared (first use this
   function)
gslconversions.cpp:246: error: `gsl_vector_free' undeclared (first use this
   function)
make[1]: *** [obj/gslconversions.o] Error 1
make[1]: Leaving directory `/usr/src/orange/source/orange'
make[1]: Entering directory `/usr/src/orange/source/orangeom'
gcc obj/optimizeAnchors.o obj/orangeom.o obj/triangulate.o -shared -lstdc++ -L../.. -lorange_include -lorange -o ../../orangeom.so
/usr/bin/ld: cannot find -lorange
collect2: ld returned 1 exit status
make[1]: *** [../../orangeom.so] Error 1
make[1]: Leaving directory `/usr/src/orange/source/orangeom'
make[1]: Entering directory `/usr/src/orange/source/orangene'
gcc obj/heatmap.o obj/orangene.o -shared -lstdc++ -L../.. -lorange_include -lorange -o ../../orangene.so
/usr/bin/ld: cannot find -lorange
collect2: ld returned 1 exit status
make[1]: *** [../../orangene.so] Error 1
make[1]: Leaving directory `/usr/src/orange/source/orangene'
make[1]: Entering directory `/usr/src/orange/source/corn'
gcc corn.o -shared -lstdc++ -L../.. -lorange_include -lorange -o ../../corn.so
/usr/bin/ld: cannot find -lorange
collect2: ld returned 1 exit status
make[1]: *** [../../corn.so] Error 1
make[1]: Leaving directory `/usr/src/orange/source/corn'
make[1]: Entering directory `/usr/src/orange/source/statc'
gcc statc.o -shared -lstdc++ -L../.. -lorange_include -lorange -o ../../statc.so
/usr/bin/ld: cannot find -lorange
collect2: ld returned 1 exit status
make[1]: *** [../../statc.so] Error 1
make[1]: Leaving directory `/usr/src/orange/source/statc'
make: *** [all] Error 2


I am running Debian/Sarge, with gcc 3.3.5. This is from the latest snapshot --- although the latest stable also lacks the files gsl/gsl_matrix.h and gsl/gsl_vector.h ...

--
Repton.

Postby Janez » Fri Mar 11, 2005 9:55

Repton,

you should build gsl (http://www.gnu.org/software/gsl/) before building Orange. Orange needs some of its statistical routines.

Janez

Postby Repton » Sun Mar 13, 2005 23:26

Ahh, my dumb --- I had libgsl, but I didn't have libgsl-dev.

Now to try again...

Postby Repton » Sun Mar 13, 2005 23:26

Ahh, my dumb --- I had libgsl, but I didn't have libgsl-dev.

Now to try again...

Postby tomaz » Thu Oct 27, 2005 11:08

For Linux installation please see download page.


Return to Questions & Support



cron