Hi Teshome,
It looks to me like you are having problems with compiling las2.c -
you do appear to have gcc installed, but then it's not finding your
include files (like stdio.h, which are usually provided with your
system....So, without finding those .h files nothing else will work
with the compile.
The output of your gcc -v command tells me you are running Ubuntu, and
one of the strange things about Ubuntu is that it does not include
"developer" settings by default, that is to say Ubuntu sort of assumes
you won't be compiling C programs, so they don't give you the .h files
by default. You just need to install those....
Here's a nice post on this issue from :
http://www.spiration.co.uk/post/1291
I've cut and pasted that note below, which I think is right on target.
If you run the apt-get command below I think things will be fine. If
you want to run install.sh again you should just delete that cluto
directory that got unpacked in the same directory as install.sh, and
then submit again....(after doing the apt-get command below).
Let us know how that works out...
Good luck,
Ted
==============================================================
Somehow I assumed that I would be able to compile a basic C program on
any linux box - I mean unices are useful like that, right? So I was a
bit surprised when I decided to compile a bit of C just now (in fact
Christian Wolff's neat little mp3cut tool) and was faced with the
following errors:
chris@snackerjack-lx:/usr/src/mp3cut-0.8$ make
gcc -o mp3cut mp3cut.c
mp3cut.c:25:19: error: stdio.h: No such file or directory
mp3cut.c:26:20: error: stdlib.h: No such file or directory
mp3cut.c:27:20: error: string.h: No such file or directory
mp3cut.c:28:20: error: unistd.h: No such file or directory
..etc .. etc
So what kind of unix comes with make and a compiler, but none of the
required dev libraries and headers required to make any normal C
program work? Well a brief google yielded the following solution..
Yup, you guessed it.. you need to install a dev package:
sudo apt-get install build-essential
Excuse my rant, but if it's so 'essential', then why isn't it
installed as part of the core system? I find that kinda weird. Anyway,
problem fixed and C-sources are now compiling.
christo
=======================================================
% sudo ./install.sh /usr/local/bin
[sudo] password for teshomek:
rm: No match.
**************************************************
let's install svdpackc...
this involes compiling the las2 program and then
doing a very simple check to make sure that worked
via a diff command of output produced by your
installed version with a key we provide (lao2.key)
your gcc version is gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu
4.1.2-16ubuntu2) Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
SVDPACKC generally requires 3.2 or 3.3, and usually
has problems with 4.0 or above
gcc -ansi -O -c las2.c
las2.c:12:19: error: stdio.h: No such file or directory
las2.c:13:20: error: stdlib.h: No such file or directory
las2.c:14:20: error: string.h: No such file or directory
las2.c:15:19: error: errno.h: No such file or directory
las2.c:16:18: error: math.h: No such file or directory
las2.c:17:19: error: fcntl.h: No such file or directory
In file included from las2.c:18:
las2.h:63: error: ‘NULL’ undeclared here (not in a function)
las2.h:84: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
las2.c: In function ‘main’:
las2.c:152: error: ‘FILE’ undeclared (first use in this function)
las2.c:152: error: (Each undeclared identifier is reported only once
las2.c:152: error: for each function it appears in.)
las2.c:152: error: ‘fp_in1’ undeclared (first use in this function)
las2.c:152: error: ‘fp_in2’ undeclared (first use in this function)
las2.c:161: warning: incompatible implicit declaration of built-in
function ‘printf’
las2.c:162: warning: incompatible implicit declaration of built-in
function ‘exit’
las2.c:165: warning: incompatible implicit declaration of built-in
function ‘printf’
las2.c:166: warning: incompatible implicit declaration of built-in
function ‘exit’
las2.c:168: error: ‘fp_out1’ undeclared (first use in this function)
las2.c:169: warning: incompatible implicit declaration of built-in
function ‘printf’
las2.c:170: warning: incompatible implicit declaration of built-in
function ‘exit’
las2.c:174: warning: incompatible implicit declaration of built-in
function ‘fscanf’
las2.c:191: warning: incompatible implicit declaration of built-in
function ‘printf’
las2.c:192: warning: incompatible implicit declaration of built-in
function ‘exit’
las2.c:214: warning: incompatible implicit declaration of built-in
function ‘exit’
las2.c:234: warning: incompatible implicit declaration of built-in
function ‘malloc’
las2.c:237: warning: incompatible implicit declaration of built-in
function ‘exit’
las2.c:237: error: ‘errno’ undeclared (first use in this function)
las2.c:291: warning: incompatible implicit declaration of built-in
function ‘exit’
las2.c:301: warning: incompatible implicit declaration of built-in
function ‘fprintf’
las2.c:330: warning: incompatible implicit declaration of built-in
function ‘sqrt’
las2.c:365: warning: incompatible implicit declaration of built-in
function ‘fabs’
las2.c:384: warning: incompatible implicit declaration of built-in
function ‘sqrt’
las2.c:398: warning: incompatible implicit declaration of built-in
function ‘exit’
las2.c: At top level:
las2.c:403: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
las2.c: In function ‘check_parameters’:
las2.c:453: warning: incompatible implicit declaration of built-in
function ‘fprintf’
las2.c:453: error: ‘fp_out1’ undeclared (first use in this function)
las2.c: At top level:
las2.c:457: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
las2.c: In function ‘write_data’:
las2.c:470: warning: incompatible implicit declaration of built-in
function ‘fprintf’
las2.c:470: error: ‘fp_out1’ undeclared (first use in this function)
las2.c: In function ‘landr’:
las2.c:594: warning: incompatible implicit declaration of built-in
function ‘sqrt’
las2.c:613: warning: incompatible implicit declaration of built-in
function ‘malloc’
las2.c:615: warning: incompatible implicit declaration of built-in
function ‘exit’
las2.c:615: error: ‘errno’ undeclared (first use in this function)
las2.c:635: warning: incompatible implicit declaration of built-in
function ‘exit’
las2.c:637: warning: incompatible implicit declaration of built-in
function ‘fabs’
las2.c: In function ‘ritvec’:
las2.c:725: warning: incompatible implicit declaration of built-in
function ‘malloc’
las2.c:727: warning: incompatible implicit declaration of built-in
function ‘exit’
las2.c:727: error: ‘errno’ undeclared (first use in this function)
las2.c:749: warning: incompatible implicit declaration of built-in
function ‘fabs’
las2.c: In function ‘lanso’:
las2.c:953: warning: incompatible implicit declaration of built-in
function ‘printf’
las2.c:961: warning: incompatible implicit declaration of built-in
function ‘fabs’
las2.c: In function ‘lanczos_step’:
las2.c:1093: warning: incompatible implicit declaration of built-in
function ‘fabs’
las2.c:1112: warning: incompatible implicit declaration of built-in
function ‘sqrt’
las2.c: In function ‘purge’:
las2.c:1255: warning: incompatible implicit declaration of built-in
function ‘fabs’
las2.c:1280: warning: incompatible implicit declaration of built-in
function ‘sqrt’
las2.c: In function ‘stpone’:
las2.c:1367: warning: incompatible implicit declaration of built-in
function ‘sqrt’
las2.c:1368: warning: incompatible implicit declaration of built-in
function ‘fabs’
las2.c: In function ‘startv’:
las2.c:1467: warning: incompatible implicit declaration of built-in
function ‘sqrt’
las2.c: In function ‘random’:
las2.c:1514: warning: incompatible implicit declaration of built-in
function ‘atan’
las2.c:1515: warning: incompatible implicit declaration of built-in
function ‘sqrt’
las2.c: In function ‘pythag’:
las2.c:1564: warning: incompatible implicit declaration of built-in
function ‘fabs’
las2.c: In function ‘error_bound’:
las2.c:1630: warning: incompatible implicit declaration of built-in
function ‘fabs’
las2.c:1632: warning: incompatible implicit declaration of built-in
function ‘sqrt’
las2.c:1640: warning: incompatible implicit declaration of built-in
function ‘sqrt’
las2.c: In function ‘imtqlb’:
las2.c:1738: warning: incompatible implicit declaration of built-in
function ‘fabs’
las2.c: In function ‘imtql2’:
las2.c:1894: warning: incompatible implicit declaration of built-in
function ‘fabs’
las2.c: In function ‘store’:
las2.c:2159: warning: incompatible implicit declaration of built-in
function ‘fprintf’
las2.c:2159: error: ‘stderr’ undeclared (first use in this function)
las2.c:2165: warning: incompatible implicit declaration of built-in
function ‘fprintf’
las2.c: In function ‘idamax’:
las2.c:2381: warning: incompatible implicit declaration of built-in
function ‘fabs’
make: *** [las2.o] Error 1
las2: Command not found.
check your las2 output against our key ...
diff: lao2: No such file or directory
there *may* be some differences in the output of
your lao2 file compared to the key we provide
these are due to execution time differences and
arithmetic differences on different architectures
however, as long as your lao2 file has some output
in a format similar to lao2.key then it you can
assume it has compiled and is running successfully
clean up a few output files...
cp: cannot stat `las2': No such file or directory
rm -fr las2.o timersun.o las2 lav2 matrix
...now installing las2 in /usr/local/bin
***************************************************
now let's install cluto ....
we are using wget, if you don't have that installed
or there are some problems accessing the cluto site
this could fail, in which case you would need to
visit
http://glaros.dtc.umn.edu/gkhome/fetch/sw/cluto/cluto-2.1.1.tar.gz
and download to install (verify the url is correct)
--10:39:38--
http://glaros.dtc.umn.edu/gkhome/fetch/sw/cluto/cluto-2.1.1.tar.gz
=> `cluto-2.1.1.tar.gz'
Resolving glaros.dtc.umn.edu... 128.101.191.158
Connecting to glaros.dtc.umn.edu|128.101.191.158|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9,364,297 (8.9M) [application/x-gzip]
100%[====================================>] 9,364,297 2.88K/s ETA 00:00
12:34:26 (1.33 KB/s) - `cluto-2.1.1.tar.gz' saved [9364297/9364297]
...will now unzip cluto-2.1.1.tar.gz
...will now untar cluto-2.1.1.tar
cluto-2.1.1/
cluto-2.1.1/CHANGES
cluto-2.1.1/cluto.h
cluto-2.1.1/COPYRIGHT
cluto-2.1.1/Linux/
cluto-2.1.1/Linux/libcluto.a
cluto-2.1.1/Linux/scluster
cluto-2.1.1/Linux/vcluster
cluto-2.1.1/manual.pdf
cluto-2.1.1/manual.ps
cluto-2.1.1/Matrices/
cluto-2.1.1/Matrices/genes1.mat
cluto-2.1.1/Matrices/genes1.mat.rlabel
cluto-2.1.1/Matrices/genes2.mat
cluto-2.1.1/Matrices/genes2.mat.clabel
cluto-2.1.1/Matrices/genes2.mat.rlabel
cluto-2.1.1/Matrices/k1b.mat
cluto-2.1.1/Matrices/k1b.mat.clabel
cluto-2.1.1/Matrices/k1b.mat.rclass
cluto-2.1.1/Matrices/README
cluto-2.1.1/Matrices/sports.clabel
cluto-2.1.1/Matrices/sports.mat
cluto-2.1.1/Matrices/sports.rclass
cluto-2.1.1/Matrices/t4.mat
cluto-2.1.1/Matrices/t7.mat
cluto-2.1.1/Matrices/tr23.graph
cluto-2.1.1/Matrices/tr23.graph.rclass
cluto-2.1.1/Matrices/tr23.mat
cluto-2.1.1/Matrices/tr23.mat.clabel
cluto-2.1.1/Matrices/tr23.mat.rclass
cluto-2.1.1/paper1.pdf
cluto-2.1.1/paper2.pdf
cluto-2.1.1/README
cluto-2.1.1/Sun/
cluto-2.1.1/Sun/libcluto.a
cluto-2.1.1/Sun/scluster
cluto-2.1.1/Sun/vcluster
cluto-2.1.1/VERSION
cluto-2.1.1/Win32/
cluto-2.1.1/Win32/libcluto.lib
cluto-2.1.1/Win32/scluster.exe
cluto-2.1.1/Win32/vcluster.exe
it looks like you are using Linux ...
...installed scluster and vcluster in /usr/local/bin
...make sure /usr/local/bin is included in your PATH
if all has gone well, you have installed svdpackc (las2)
and cluto (scluter and vcluster) in /usr/local/bin
let's check...you should see three files: las2 scluster vcluster
ls: /usr/local/bin/las2: No such file or directory
-rwxr-x--- 1 root 1178264 2008-04-07 12:34 /usr/local/bin/scluster
-rwxr-x--- 1 root 1212576 2008-04-07 12:34 /usr/local/bin/vcluster
.... end of External Software Installation for SenseClusters ....
if you have some problem with this script, please save the output
and send it to tpederse at d.umn.edu for further assistance
%
On Mon, Apr 7, 2008 at 8:02 AM, Teshome Kassie <
tkheran@yaho...> wrote:
> Hi Ted,
>
> I have attached the error with external installation.
>
> Teshome
>
>
>
>
> ________________________________
> You rock. That's why Blockbuster's offering you one month of Blockbuster
> Total Access, No Cost.
--
Ted Pedersen
http://www.d.umn.edu/~tpederse
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
senseclusters-developers mailing list
senseclusters-developers@list...
https://lists.sourceforge.net/lists/listinfo/senseclusters-developers
opensubscriber is not affiliated with the authors of this message nor responsible for its content.