myDSL Extensions (deprecated) :: R myDSL effort - dependancy problem



Hi Clacker,

I did most of what you said, but I am asked for a library file called zlib during make. i downloaded the latest zlib.
Now how can I put this in and make postgresql read it during make?

I ran configure --with libraries=/opt/lib afte adding the LD_LIBRARY_ PATH but despite the fact that zlib is there in a packed file in the /opt/lib, the make program repeats that it cannot find the particular file!

I then did something undesireable but worked around by doing configure --without-zlib and make ran and said postgresql was ready to install. When runnign make install, it aain stops saying another file called ascii_moi.so is missing from $libdir/, but the file IS there in the library path!

Any reason for this? Iis it a ownership problem?

i also found that we can edit the Makefile to set the prefix if there is no way to do this from the configure.

I am getting warmed to this thanks to you! :-)

How did you load zlib?  Did you use apt-get?  I've found when a configure/make asks for a library, you need to apt-get the -dev version of that package so that you get the include files.  In this case I guess that's zlib1g-dev.  If you don't get the dev version, gcc can't use the *.h files to let the compiler know where things are in the libraries.  Once the program has been compiled, in most cases those *-dev files are no longer needed.
Quote
In summary, k4nt1 should be able to type at the R-prompt:
library(KernSmooth)
library(VR)
library(boot)
library(cluster)
library(foreign)
library(lattice)
library(mgcv)
library(nlme)
library(rpart)
library(survival)
and if these R-libraries all load without errors, all is well with r-recommended. I just suspect they will have to be R INSTALLed first.


I remade the R.tar.gz package.  It turns out I needed to apt-get perl, tcl8.3, and tk8.3 to get things in recomended to compile.  I tried the above libraries and all but VR loaded.  I believe VR compiled, because it failed without perl like I said, but I don't see it when I type library(VR).

It's up to around 15 megs now.  demo() now gives you a nice list of the available demos, and the html help is there.  I set the R_BROWSER configuration variable so that R would use firefox.  It wants java for some of it's help pages, but you should be able to load that extension from the repository.  You might need the tcltk, gcc1, and gtk2 extensions for some things, but I did write a working function without it.

Try it out, if you like it it's yours to keep. :)

That's a really good piece of work!
I shall check the the testing area (the one accessed from the DSL front page, yes?) daily, in eager anticipation; once it's up I'll give it a workout.
Many thanks for this.

Quote (clacker @ Mar. 27 2005,18:59)
How did you load zlib?  Did you use apt-get?  I've found when a configure/make asks for a library, you need to apt-get the -dev version of that package so that you get the include files.  In this case I guess that's zlib1g-dev.  If you don't get the dev version, gcc can't use the *.h files to let the compiler know where things are in the libraries.  Once the program has been compiled, in most cases those *-dev files are no longer needed.

Hi Clacker,

I installed zlib with the source tar file. i had to get the latest version because there was a security issue in the erlier versions.
i will try apt-get and see if there is a dev file as well. You are right. Without the dev file many programs in Debian systems do not compile. This happened to me with compiling zope which needs python-dev!

Next Page...
original here.