|
|
#1 |
|
Prospect
Join Date: Jun 2004
Location: Naperville IL
Posts: 9
|
octave binary from fink not running
Hello...
my dilema is that I need to get my octave running again. I had an old version on my old iBook. I just finished downloading the new version of octave from fink as binary (got all the packages with it -14!) and thought I could now go into my existing X11 and type octave and ....nothing happend bash: octave: command not found I am a beginner when it comes to unix, just a user .... Any suggestions? Oh, and does anybody know if the matrix inverter bug was taken care off in the new version? Deeply appreciate it! Daniel It runs under the terminal window...but not in X11...that is soooo odd! I liked the X11 window better... Last edited by oecher3; 06-08-2004 at 11:01 AM. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jan 2002
Posts: 10,677
|
If it says "command not found" it's probably not in your path.
See if this works: ls -la /sw/bin/octave |
|
|
|
|
|
#3 | |||||||||||||||||||||||
|
Prospect
Join Date: Jun 2004
Location: Naperville IL
Posts: 9
|
Thanks for your message! tried it even with the ls -la /sw/bin/octave-2.1.53 but same result. Before I posted this I went into this directory to start octave directly from its folder to see if the link is not open to be called up from anywhere. didn't work.. is it possible that I have my X11 window locked somehow? I can still do my SSH connection to the server but octave. I think I should also be able to access R from X11, the new version has its own window so I haven't thought of anything when I could no longer open R in X11. |
|||||||||||||||||||||||
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jan 2002
Posts: 10,677
|
If you were in the same folder, you would have to prefix the command with a ./, like this:
./octave-2.1.53 |
|
|
|
|
|
#5 | |||||||||||||||||||
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
Check your .profile or .bash_profile file in your home directory to see if you have: . /sw/bin/init.sh Also, have you deleted anything in your .octaverc? Please, run in Terminal.app and post the result of: sw_vers echo $PATH fink list -i octave It's working here without problems: Code:
[pm @ Sao: ~] % octave GNU Octave, version 2.1.57 (powerpc-apple-darwin7.4.0). Copyright (C) 2004 John W. Eaton. ......... Code:
octave:1> DEFAULT_LOADPATH DEFAULT_LOADPATH = .:/sw/lib/octave/2.1.57/site/oct/powerpc-apple-darwin7.4.0// :/sw/lib/octave/site/oct/api-v8/powerpc-apple-darwin7.4.0//:/sw/lib/octave/site/oct/powerpc-apple-darwin7.4.0// :/sw/share/octave/2.1.57/site/m//:/sw/share/octave/site/api-v8/m//:/sw/share/octave/site/m// :/sw/lib/octave/2.1.57/oct/powerpc-apple-darwin7.4.0//:/sw/share/octave/2.1.57/m// octave:2> |
|||||||||||||||||||
|
|
|
|
|
#6 |
|
Prospect
Join Date: Jun 2004
Location: Naperville IL
Posts: 9
|
Thanks Sao
it took me a while...sorry!
here are what I get oecher3:/ oecher3$ sw_vers ProductName: Mac OS X ProductVersion: 10.3.4 BuildVersion: 7H63 oecher3:/ oecher3$ echo $PATH /sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin oecher3:/ oecher3$ fink list -i octave Information about 1494 packages read in 3 seconds. i octave 2.1.53-1 Matlab-like language for computations a friend of mine played with it and said he put a bandaid on it. He said the .profile showed the shell boot up/ initial start up included everything it was supposed to but it didn't really start up. He copied the same information into an attached file and told it to open everytime I start X11. Now octave works in X11, but I still have trouble. I tried installing octave-forge today and I get an error message that tell me that the problem still exits: oecher3:/Downloads/octave-forge-2004.02.12 oecher3$ ./configure checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. Do I see this right that the Path is what causes me problems? Thanks again for your help! |
|
|
|
|
|
#7 |
|
Prospect
Join Date: Jun 2004
Location: Naperville IL
Posts: 9
|
additionally
when I type
.profile and .bash_profile I get respectively: oecher3:/ oecher3$ .profile -bash: .profile: command not found oecher3:/ oecher3$ .bash_profile -bash: .bash_profile: command not found Ah...grrrrrrr... All I did is download fink commander and than octave setup itself. I don't play much with the unix, since I don't know much about it. But I sure we can fix this I hate to buy Matlab when octave is such a great program! |
|
|
|
|
|
#8 |
|
Moderator
Join Date: Jan 2002
Posts: 10,677
|
.profile and .bash_profile aren't commands, so just typing that won't get you anything. What are you trying to accomplish? To see if they exist? If so, in your home directory (to get there, type: cd ~), type: ls -la
Did you download and build octave from source, or just download a binary? In order to build anything, you need to have XCode tools installed, and therefore a C compiler. To see if you have a C compiler, type: gcc -v Code:
yellow% gcc -v Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs Thread model: posix gcc version 3.3 20030304 (Apple Computer, Inc. build 1640) Last edited by yellow; 06-11-2004 at 07:20 PM. |
|
|
|
|
|
#9 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
Code:
checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH The fink package octave-forge is only in 10.3 "unstable", so as yellow told you above: 1- you need to install 'Xcode' (Apple Developer Tools) and the 'X11SDK' from the Xcode Tools CD to compile it from source. 2- enable Fink to use unstable by editing the /sw/etc/fink.conf file and adding 'unstable/main' 'unstable/crypto' to the beginning of the Trees: line. And then run from Terminal.app the commands: fink index fink selfupdate fink install octave-forge Code:
Trees: local/main unstable/main unstable/crypto stable/main stable/crypto local/bootstrap . |
|
|
|
|
|
#10 |
|
Prospect
Join Date: Jun 2004
Location: Naperville IL
Posts: 9
|
Alright..got Xcode installed,
now I fixed the fink.conf but now this: oecher3:/sw/etc oecher3$ fink index Distribution not set in config file "/sw/etc/fink.conf"! here is what the whole config looks like: # Fink configuration, initially created by bootstrap.pl Basepath: /sw RootMethod: sudo Trees: unstable/main unstable/crypto local/main stable/main stable/crypto local/bootstrap Distribution: 10.3 Mirror-cpan: ftp://ftp.funet.fi/pub/languages/perl/CPAN/ Mirror-ctan: ftp://tug.ctan.org/tex-archive/ Mirror-debian: ftp.debian.org Mirror-gimp: ftp://ftp.gimp.org/pub Mirror-gnome: ftp://ftp.gnome.org/pub/GNOME/ Mirror-gnu: ftp://ftp.gnu.org/gnu Mirror-kde: ftp://ftp.kde.org/pub/kde/ Mirror-master: http://distfiles.master.finkmirrors.net/ Mirror-rsync: rsync://master.us.finkmirrors.net/finkinfo/ Mirror-sourceforge: http://west.dl.sourceforge.net/sourceforge/ MirrorContinent: nam MirrorCountry: nam-us MirrorOrder: MasterFirst ProxyPassiveFTP: true Verbose: 1 when I open up the fink commander I get 0 packages downloaded and o packages installed... I tried installing the octave-forge just as they recommand in the readme file. it suggested to type ./configure in the octave-forge folder than to type make and then sudo make install... but this is what I got: oecher3:/Downloads/octave-forge-2004.02.12 oecher3$ ./configure checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for mkoctfile... mkoctfile retrieving compile and link flags from mkoctfile checking for F77_FUNC... yes checking for SLList.h... no checking for lo_ieee_nan_value... yes checking for quit.h... yes checking for octave... octave checking for OCTAVE_VERSION in Octave... 2.1.53 checking for octave_config_info('SHLEXT') in Octave... so checking whether ln -s works... yes checking for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib checking for strip... strip checking how to run the C preprocessor... gcc -E checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for do_fortran_indexing in Octave... no checking for propagate_empty_matrices in Octave... no checking for ok_to_lose_imaginary_part in Octave... no checking for N-dim arrays... yes checking for class in Octave... yes checking for load/save functions in class... no checking for Octave_map indexing... no checking for makeinfo... makeinfo checking for makeinfo --no-split... yes checking for texi2dvi... texi2dvi checking that texi2dvi runs... no checking for texi2html... texi2html checking for texi2html --clean... no checking for dvipdf... no checking for dvips... no checking IEEE 754 compliance... yes checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking linux/soundcard.h usability... no checking linux/soundcard.h presence... no checking for linux/soundcard.h... no checking for qh_qhull in -lqhull... no checking jpeglib.h usability... no checking jpeglib.h presence... no checking for jpeglib.h... no checking png.h usability... no checking png.h presence... no checking for png.h... no checking for socklen_t... yes checking for octave_function(void)... no checking term.h usability... yes checking term.h presence... yes checking for term.h... yes checking termcap.h usability... yes checking termcap.h presence... yes checking for termcap.h... yes checking for tgetnum in -ltermcap... yes checking for ginac-config... no configure: creating ./config.status config.status: creating Makeconf config.status: creating octinst.sh config.status: creating admin/RPM/octave-forge.spec "$prefix" is /usr/local "$exec_prefix" is ${prefix} octave commands will install into the following directories: m-files: /sw/share/octave/2.1.53/site/m/octave-forge oct-files: /sw/lib/octave/2.1.53/site/oct/powerpc-apple-darwin7.2.0/octave-forge binaries: /sw/lib/octave/2.1.53/site/exec/powerpc-apple-darwin7.2.0 alternatives: m-files: /sw/share/octave/2.1.53/site/octave-forge-alternatives/m oct-files: /sw/lib/octave/2.1.53/site/octave-forge-alternatives/oct/powerpc-apple-darwin7.2.0 shell commands will install into the following directories: binaries: ${exec_prefix}/bin man pages: ${prefix}/man libraries: ${exec_prefix}/lib headers: ${prefix}/include octave-forge is configured with octave: octave (version 2.1.53) mkoctfile: mkoctfile for Octave 53 X11 support: yes makeinfo: makeinfo --no-split texi2dvi: texi2html: texi2html mkdoc: /Downloads/octave-forge-2004.02.12/admin/mkdoc mktexi: /Downloads/octave-forge-2004.02.12/admin/mktexi dvips: dvipdf: audio capture: linux/soundcard.h not found geometry toolbox: Qhull not found --- see main/geometry/README read/write image formats: jpeglib.h not found, png.h not found have term.h or termcap.h: yes symbolic toolbox: GiNaC not found --- see main/symbolic/INSTALL find . -name NOINSTALL -print # shows which toolboxes won't be installed oecher3:/Downloads/octave-forge-2004.02.12 oecher3$ make cd FIXES/ && make mkoctfile -DHAVE_OCTAVE_21 -v -DHAVE_IEEE754_COMPLIANCE sort.cc g++ -c -no-cpp-precomp -I/sw/include -I/sw/include/octave-2.1.53 -I/sw/include/octave-2.1.53/octave -I/sw/include -g -O2 -DHAVE_OCTAVE_21 -DHAVE_IEEE754_COMPLIANCE sort.cc -o sort.o In file included from /sw/include/octave-2.1.53/octave/ov-base.h:39, from /sw/include/octave-2.1.53/octave/ov-fcn.h:36, from /sw/include/octave-2.1.53/octave/ov-builtin.h:32, from /sw/include/octave-2.1.53/octave/defun-int.h:28, from /sw/include/octave-2.1.53/octave/defun-dld.h:30, from /sw/include/octave-2.1.53/octave/oct.h:35, from sort.cc:23: /sw/include/octave-2.1.53/octave/ov.h:37:18: hdf5.h: No such file or directory In file included from /sw/include/octave-2.1.53/octave/ov-base.h:39, from /sw/include/octave-2.1.53/octave/ov-fcn.h:36, from /sw/include/octave-2.1.53/octave/ov-builtin.h:32, from /sw/include/octave-2.1.53/octave/defun-int.h:28, from /sw/include/octave-2.1.53/octave/defun-dld.h:30, from /sw/include/octave-2.1.53/octave/oct.h:35, from sort.cc:23: /sw/include/octave-2.1.53/octave/ov.h:666: error: `hid_t' was not declared in this scope /sw/include/octave-2.1.53/octave/ov.h:666: error: parse error before `,' token /sw/include/octave-2.1.53/octave/ov.h:669: error: `hid_t' was not declared in this scope /sw/include/octave-2.1.53/octave/ov.h:669: error: parse error before `,' token /sw/include/octave-2.1.53/octave/ov.h: In member function `virtual bool octave_value::save_hdf5(...)': /sw/include/octave-2.1.53/octave/ov.h:667: error: `loc_id' undeclared (first use this function) /sw/include/octave-2.1.53/octave/ov.h:667: error: (Each undeclared identifier is reported only once for each function it appears in.) /sw/include/octave-2.1.53/octave/ov.h:667: error: `name' undeclared (first use this function) /sw/include/octave-2.1.53/octave/ov.h:667: error: `save_as_floats' undeclared (first use this function) /sw/include/octave-2.1.53/octave/ov.h: In member function `virtual bool octave_value::load_hdf5(...)': /sw/include/octave-2.1.53/octave/ov.h:671: error: `have_h5giterate_bug' undeclared (first use this function) In file included from /sw/include/octave-2.1.53/octave/ov-fcn.h:36, from /sw/include/octave-2.1.53/octave/ov-builtin.h:32, from /sw/include/octave-2.1.53/octave/defun-int.h:28, from /sw/include/octave-2.1.53/octave/defun-dld.h:30, from /sw/include/octave-2.1.53/octave/oct.h:35, from sort.cc:23: /sw/include/octave-2.1.53/octave/ov-base.h: At global scope: /sw/include/octave-2.1.53/octave/ov-base.h:268: error: parse error before `,' token /sw/include/octave-2.1.53/octave/ov-base.h:270: error: parse error before `,' token make[1]: *** [sort.oct] Error 1 make: *** [FIXES/] Error 2 |
|
|
|
|
|
#11 |
|
Prospect
Join Date: Jun 2004
Location: Naperville IL
Posts: 9
|
morfe than 10000 characters
oecher3:/Downloads/octave-forge-2004.02.12 oecher3$ sudo make install
Password: cd FIXES/ && make install installing FIXES to /sw/share/octave/2.1.53/site/m/octave-forge/FIXES cd extra/ && make install if ! test -e /sw/lib/octave/2.1.53/site/oct/powerpc-apple-darwin7.2.0/octave-forge ; then \ echo creating /sw/lib/octave/2.1.53/site/oct/powerpc-apple-darwin7.2.0/octave-forge ; \ /usr/bin/install -c -d /sw/lib/octave/2.1.53/site/oct/powerpc-apple-darwin7.2.0/octave-forge ; \ fi if test -d /sw/lib/octave/2.1.53/site/oct/powerpc-apple-darwin7.2.0/octave-forge ; then \ echo installing mex.o mex/mex.h mex/matrix.h in /sw/lib/octave/2.1.53/site/oct/powerpc-apple-darwin7.2.0/octave-forge ; \ /usr/bin/install -c -m 644 mex.o /sw/lib/octave/2.1.53/site/oct/powerpc-apple-darwin7.2.0/octave-forge/mex.o ; \ /usr/bin/install -c -m 644 mex.h /sw/lib/octave/2.1.53/site/oct/powerpc-apple-darwin7.2.0/octave-forge/mex.h ; \ /usr/bin/install -c -m 644 matrix.h /sw/lib/octave/2.1.53/site/oct/powerpc-apple-darwin7.2.0/octave-forge/matrix.h ; \ fi installing mex.o mex/mex.h mex/matrix.h in /sw/lib/octave/2.1.53/site/oct/powerpc-apple-darwin7.2.0/octave-forge install: mex.o: No such file or directory installing mex/mex.1 in /usr/local/man/man1 installing mex/mex in /usr/local/bin install: mex: No such file or directory make[2]: *** [install] Error 71 make[1]: *** [mex/] Error 2 make: *** [extra/] Error 2 I know information overload but I would like to get this working. I need to use the symbolic toolbox and it seems it even not included in the forge I downloaded... ![]() Any more clues??? |
|
|
|
|
|
#12 | |||||||||||||||||||
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
Code:
# Fink configuration, initially created by bootstrap.pl Basepath: /sw RootMethod: sudo Trees: local/main unstable/main unstable/crypto stable/main stable/crypto local/bootstrap Distribution: 10.3 Mirror-cpan: ftp://ftp.funet.fi/pub/languages/perl/CPAN/ ....... That's why you get the message: "Distribution not set in config file "/sw/etc/fink.conf"!" 1- After you fixed it, run the command 'fink index' again. 2- And then run 'fink selfupdate' (choose the 'rsync' method if asked). 3- When finished, if you want to see a list of the packages you can install with Fink, run in Terminal.app the command 'fink list'. 5- Important: Did you installed the "X11SDK" package from the Xcode Tools CD? It's necessary if you want to install from source.
To install the "fink" package 'octave-forge', just run in Terminal.app the command: 'fink install octave-forge' Code:
[pm @ Sao: ~] % lis -i octave Information about 3183 packages read in 1 seconds. i octave 2.1.57-3 Matlab-like language for computations i octave-forge 2004.02.12-3 Extensions to octave . |
|||||||||||||||||||
|
|
|
|
|
#13 | |||||||||||||||||||||||
|
Prospect
Join Date: Jun 2004
Location: Naperville IL
Posts: 9
|
Thank you so much,
I got it to run...can't believe it I forgot to install the developer tools before fiddling with x11. Now my octave runs great... Good job. very good page, I will pass the word around the department about your excellent help!
|
|||||||||||||||||||||||
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|