Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: probleem met configureren  (gelezen 2891 keer)

Lise

  • Gast
probleem met configureren
« Gepost op: 2007/03/19, 22:19:42 »
Hoi,

ik wilde R en bijbehorende plugin voor de spreadsheet gnumeric installeren. Nu blijkbaar gaat dat niet in gewoon via synaptic,

Als ik de installatie instructies volg uit de README:
./configure --enable-R-shlib
/make

heb ik steevast problemen

root@annelies-laptop:/home/annelies/Desktop# ./configure --enable-R-shlib
-bash: ./configure: No such file or directory
root@annelies-laptop:/home/annelies/Desktop# cd RGnumeric
root@annelies-laptop:/home/annelies/Desktop/RGnumeric# ./configure --enable-R-shlib
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 gtk-config... no
checking for gnome-config... no
checking for gdk-pixbuf-config... no
You must specify where the gnumeric source distribution is located on your machine.
Give the directory via the --with-gnumeric argument or the environment variable
GNUMERIC_DIR

volgende probleem
To install the R-Gnumeric plugin, you must have R compiled as a shared library
Reconfigure and compile the R distribution to create R_HOME/bin/libR.so
Use the commands
\tconfigure --enable-R-shlib ...
\tmake


Nu ik weet niet waar ik die file moet plaatsen; bovendien staat die file NIET in de bin directory maar in een lib  /usr/lib/R/lib.

Iemand die mij hiermee kan helpen

Offline eendje

  • Lid
probleem met configureren
« Reactie #1 Gepost op: 2007/03/19, 22:30:11 »
Je hebt de source (de code die de programmeurs hebben gemaakt) van Gnumeric nodig om de plugin te compileren (zie http://www.omegahat.org/RGnumeric/README.html). Je moet dus de source van de versie die op je systeem staat downloaden en op je systeem zetten. Daarna moet je volgens mij wel kunnen compileren.
Een dag niets geleerd is een dag niet geleefd!
Ik blog dus ik besta!
__________________________________________________________
Een vraag? Heb je al eens gekeken op: http://wiki.ubuntu-nl.org/FAQ?

Lise

  • Gast
probleem met configureren
« Reactie #2 Gepost op: 2007/03/20, 00:12:50 »
de volgende vraag (nog maar is)

in de read-me staat er
R CMD INSTALL --configure-args='gnumeric/directory/' RGnumeric, waarbij er dit komt

gzip: RGnumeric: unexpected end of file
ERROR: cannot extract package from 'RGnumeric'

en een beetje verder staat er

annelies@annelies-laptop:~$ R CMD INSTALL -c RGnumeric_0.3-5.tar.gz
WARNING: invalid package 'RGnumeric_0.3-5.tar.gz'
ERROR: no packages specified

Lise

  • Gast
probleem met configureren
« Reactie #3 Gepost op: 2007/04/04, 19:31:49 »
Hey,

ik heb nog is geprobeerd om de RGnumeric-plugin aan de praat te krijgen, en nog is het niet gelukt

annelies@annelies-laptop:~$ cd /home/annelies/RGnumeric
annelies@annelies-laptop:~/RGnumeric$ ./configure --with-gnumeric='/home/annelies/gnumeric-1.7.0'
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 gtk-config... /usr/bin/gtk-config
checking for gnome-config... /usr/bin/gnome-config
checking for gdk-pixbuf-config... /usr/bin/gdk-pixbuf-config
Currently, this plugin requires access to internal facilities in R that are not in the API.
This requires that the source code for the R distribution is available to compile
this plugin, specifically the include file R_HOME/src/include/Defn.h
Please download the R source, build the shared library and install using that version of R
annelies@annelies-laptop:~/RGnumeric$
Ik heb ook de readme doorgenomen maar daar snap ik niet zoveel van.
kzal effe wat gegevens geven waar ik pakketten geinstalleerd heb, mss zien jullie dan de fout.

gnumeric in /home/annelies/gnumeric-1.7.0
R in /home/annelies/R-install
RGnumeric-0.3.5 in  /home/annelies/RGnumeric

 in de readme staat er iets van die gnomesupport; ik zou niet weten waar ik die moet gebruiken (staat bij mij in /usr/lib)

Hopelijk weet iemand hier raad me

grtz
Annelies

Offline eendje

  • Lid
probleem met configureren
« Reactie #4 Gepost op: 2007/04/04, 19:54:05 »
Citaat
This requires that the source code for the R distribution is available to compile
this plugin, specifically the include file R_HOME/src/include/Defn.h
Ik denk dat je op één of andere manier met een parameter moet aangeven dat je de source van R in de directorie /home/annelies/R-install hebt staan op dezelfde wijze als je de optie --with-gnumeric='/home/annelies/gnumeric-1.7.0' hebt toegevoegd aan ./configure. Kijk eens in de readme of er iets over staat....
Een dag niets geleerd is een dag niet geleefd!
Ik blog dus ik besta!
__________________________________________________________
Een vraag? Heb je al eens gekeken op: http://wiki.ubuntu-nl.org/FAQ?

Lise

  • Gast
probleem met configureren
« Reactie #5 Gepost op: 2007/04/04, 20:48:32 »
Citaat van: eendje
Citaat
This requires that the source code for the R distribution is available to compile
this plugin, specifically the include file R_HOME/src/include/Defn.h
Ik denk dat je op één of andere manier met een parameter moet aangeven dat je de source van R in de directorie /home/annelies/R-install hebt staan op dezelfde wijze als je de optie --with-gnumeric='/home/annelies/gnumeric-1.7.0' hebt toegevoegd aan ./configure. Kijk eens in de readme of er iets over staat....
kheb geprobeerd het volgende , maar dat gaf juist hetzelfde als hierboven

root@annelies-laptop:/home/annelies/RGnumeric# ./configure --with-gnumeric='/home/annelies/gnumeric-1.7.0 --with-R='/home/annelies/R-install

Lise

  • Gast
probleem met configureren
« Reactie #6 Gepost op: 2007/04/04, 21:16:59 »
Hey,

effe zeggen wat ik niet snap in de README

Citaat
This package uses R as a plugin to Gnumeric. To use it, you will need (no surprises)

Gnumeric, and
    R

and you will need to have R in the form of a shared library, $R_HOME/bin/libR.so. To do this, reconfigure and recompile R using the commands

 ./configure --enable-R-shlib any other arguments
 make
heb Gnumeric en R dus beiden from source geinstalleerd en gecompileerd ook, maar wat bedoelt men eigelijk met " any other arguments"  (heb gewoon
./configure --enable-R-shlib gedaan en dat gaf geen fouten, maar hier moest wss wel nog iets bij)

Citaat
...
At this point, let's assume you have the Gnumeric source and a running Gnumeric. You will need to tell the configuration script for this R package where the directory containing the Gnumeric source is located. The directory of interest is the one containing the src/, plugins/ and po/ directories of the gnumeric source. If you download the Gnumeric source and simply un-tar it, the resulting top-level directory is the one we need.

There are two ways to specify this location. The first is by setting the environment variable GNUMERIC_DIR to the fully qualified name of the that directory. The second is to specify it as a command line argument to the configure script. This is done as the value of the --with-gnumeric argument of the configure script. Since configure is invoked via the R INSTALL command, passing an argument to it is slightly more complicated. This is done as

 R CMD INSTALL --configure-args='gnumeric/directory/' RGnumeric
bovenstaande commando snap ik dus niet: wat moet ik invullen ipv "directory"
ik had het volgende gedaan:
root@annelies-laptop:~# R CMD INSTALL --configure-args='gnumeric/home/annelies/R-install/' RGnumeric

gzip: RGnumeric: unexpected end of file
ERROR: cannot extract package from 'RGnumeric'
root@annelies-laptop:~#
Citaat
The compilation also requires access to the file named gnomesupport.h that is installed with the gnome libraries. The configuration script attempts to find this in a variety of different ways. As a last resort, it explicitly looks for it in the directory /usr/local/lib/gnome-libs/include/. If it is not found, the configuration will fail. In that case, you can specify the directory in which it is available using the environment variable EXTRA_INCLUDES.
Hier weet ik dus niet waar en hoe ik die gnomesupport zou moeten bij vermelden. (staat in /usr/lib)


Citaat
Installation
At this point, the plugin library is ready to be used in Gnumeric. However, you must tell Gnumeric of its existence. To do this, you have to decide where to install the plugin library so that gnumeric will find it when it starts. You essentially have two choices:

    * your home directory, for personal use
    * the system-wide plugin directory for all users, typically /usr/local/lib/gnumeric/0.64/plugins

The default is to put it in your home directory, specifically in the directory .gnumeric/version-number/plugins/R. To install it in a different place, specify the target directory by setting the environment variable INSTALL_DIR.
ik dacht dat ik hier de file plugin.xml moest kopieren in de directory gnumeric.1.7.0/plugins/R , maar dat is blijkbaar de taak van het cleanup script? wat was dan de bedoeling in bovenstaande stap?

Citaat
The cleanup script will copy the file plugin.xml in this distribution to the installation directory where gnumeric looks for plugins. It will also create a symbolic link to the shared library in the installed R library
Citaat
To perform this installation as part of the R installation, invoke R CMD INSTALL with the -c argument.

 R CMD INSTALL -c RGnumeric_0.1-0.tar.gz
opnieuw snap ik het commando eigelijk niet.  Het geeft in ieder geval foutmeldingen.

In ieder geval bedankt voor de moeite om het te lezen.
grtz
Annelies

rikdegroot

  • Gast
probleem met configureren
« Reactie #7 Gepost op: 2007/04/12, 12:51:23 »
Heb je al geprobeerd als super user,
dus
# sudo ./configure --with-gnumeric='/home/annelies/gnumeric-1.7.0'?
wil nog wel eens helpen

Rik

Lise

  • Gast
probleem met configureren
« Reactie #8 Gepost op: 2007/04/17, 16:57:41 »
jep dat had ik ook al geprobeerd; maar ik heb ondertussen ontdekt dat het wss ligt aan  de installatie van gnumeric from source.

als ik ./configure typ krijg ik het volgende, terwijl ik al de pakketten die in de readme vermeld staan heb geinstalleerd, ook libgda2-dev, gnomedb2-dev

Configuration:

        Source code location:   .
        Compiler:               gcc
        Compiler flags:         -g -O2  -Wall -Wmissing-prototypes  -Wsign-compare -Wpointer-arith -Wnested-externs -Wchar-subscripts -Wwrite-strings -Wdeclaration-after-statement -Wnested-externs -Wmissing-noreturn -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-declarations -Wno-pointer-sign
        Floating point type:    double

        UI:                     Gnome

        Perl Support:           yes (using perl)
        Python Support:         yes (using python)

        GDA support:            NO.  libgda problem
        GNOME-DB support:       no
        Psiconv support:        missing dependencies