help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R: Remote installation problem for 3.2.4 on Ubuntu 8.04


From: Kanny
Subject: Re: R: Remote installation problem for 3.2.4 on Ubuntu 8.04
Date: Fri, 29 Jan 2010 03:08:28 +0530

It works now.

I gave it a clean make using 
make distclean
./configure --prefix=$HOME/octave (without any other options, previously i used --with-x=no)
make 
make check
make install

Now, onto some matrix decompositions.
Thanks
Kanny
 
On Jan 29, 2010, at 12:14 AM, Kanny wrote:

Thank you Riccardo for the help. Doing sudo apt-get install libx11-dev did help to overcome the display.cc compile. After another 20 min of further compiling, towards the end, I get this error:

=========
.....
gcc -c  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wformat -g -O2 -pthread main.c -o main.o
g++  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wold-style-cast -Wformat -g -O2 -pthread -rdynamic \
-L..  -fPIC  -o octave \
main.o  \
-L../liboctave -L../libcruft -L../src -Wl,-rpath -Wl,/home/ewestman/octave/lib/octave-3.2.4 \
-loctinterp -loctave  -lcruft   \
-lumfpack -lamd -lcamd -lcolamd \
-lcholmod -lccolamd -lcxsparse -llapack -lblas \
-lfftw3 -lfftw3f  -larpack  \
 -lreadline  -lncurses -ldl -lhdf5 -lz -lm  -L/usr/lib/gcc/i486-linux-gnu/4.2.4 -L/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.2.4/../../.. -lhdf5 -lz -lgfortranbegin -lgfortran -lm
../src/liboctinterp.so: undefined reference to `XOpenDisplay'
../src/liboctinterp.so: undefined reference to `XScreenNumberOfScreen'
collect2: ld returned 1 exit status
make[2]: *** [octave] Error 1
make[2]: Leaving directory `/home/etman/octave/octave-3.2.4/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/home/etman/octave/octave-3.2.4'
make: *** [all] Error 2
==========

Any help how to overcome this?

Thanks
Kanny


On Jan 28, 2010, at 10:05 PM, Riccardo Corradini wrote:

Kanny
I tried this procedure on Ubuntu Karmic 9.10
sudo apt-get install apt-file
sudo apt-file cache
sudo apt-file search X11/Xlib.h
ivtools-dev: /usr/include/IV-X11/Xlib.h
libghc6-x11-dev: /usr/lib/haskell-packages/ghc6/lib/X11-1.4.5/ghc-6.10.4/Graphics/X11/Xlib.hi
libhugs-x11-bundled: /usr/lib/hugs/packages/X11/Graphics/X11/Xlib.hs
libroot5.18: /usr/lib/root/5.18/cint/include/X11/Xlib.h
libx11-dev: /usr/include/X11/Xlib.h
So try to install
sudo apt-get install libx11-dev
and see what happens
Bests
Riccardo Corradini


--- Gio 28/1/10, Kanny <address@hidden> ha scritto:

Da: Kanny <address@hidden>
Oggetto: Remote installation problem for 3.2.4 on Ubuntu 8.04
A: address@hidden
Data: Giovedì 28 gennaio 2010, 16:38

I am trying to install Octave 3.2.4 on Ubuntu 8.04 remotely using ssh.
Using apt-get install octave3.0, it installs fine, but i need sparse 
functions from 3.2.3 or 3.2.4, so the problem.

First it needed fortran, so i installed gfortran using apt-get. Now it 
compiles for a good time and then gives error related to display:

g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -
DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wold-style-cast -Wformat -
g -O2 -pthread display.cc -o pic/display.o
display.cc:34:22: error: X11/Xlib.h: No such file or directory
display.cc: In member function ‘void display_info::init(bool)’:
display.cc:98: error: ‘Display’ was not declared in this scope
display.cc:98: error: ‘display’ was not declared in this scope
display.cc:98: error: ‘XOpenDisplay’ was not declared in this scope
display.cc:102: error: ‘Screen’ was not declared in this scope
display.cc:102: error: ‘screen’ was not declared in this scope
display.cc:102: error: ‘DefaultScreenOfDisplay’ was not declared in 
this scope
display.cc:106: error: ‘DefaultDepthOfScreen’ was not declared in this 
scope
display.cc:108: error: ‘HeightOfScreen’ was not declared in this scope
display.cc:109: error: ‘WidthOfScreen’ was not declared in this scope
display.cc:111: error: ‘XScreenNumberOfScreen’ was not declared in 
this scope
display.cc:113: error: ‘DisplayHeightMM’ was not declared in this scope
display.cc:114: error: ‘DisplayWidthMM’ was not declared in this scope
make[2]: *** [pic/display.o] Error 1

I tried to install build-dep (octave3.0), but get the error from apt-
get to include some sources. Does anyone know which sources I should 
include in /etc/apt/sources.list for octave build-dep ? Even better 
would have been a source for binary like apt-get install octave3.2.4 ?

I do not plan to use graphics/plotting functionalities, so is there a 
way to resolve this problem alternately? I tried with --without-x but 
the same error is resulted.

Any help would be greatly appreciated.

Thanks
Kanny=

_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave


=

=

reply via email to

[Prev in Thread] Current Thread [Next in Thread]