On Jun 16, 10:44 am, Kirill Vankov <[email protected]> wrote:
> I was hoping that new release 4.7 will fix the problem, seeing that
> the ticket 5634 has been closed. However, I just tried to install a

The errors reported there were of a different nature, primarily
related to us long ago not having installed the suggested packages in
R.

> new package and got an error message:

That is sad!

> =====
> Detected SAGE64 flag
> Building Sage on OS X in 64-bit mode

Does this happen every time you start Sage?  That is odd.


> ----------------------------------------------------------------------
> | Sage Version 4.7, Release Date: 2011-05-23                         |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
> sage: r.install_packages('actuar')
>
> Warning: R include directory is empty -- perhaps need to install R-
> devel.rpm or similar
> make: /Users/buildbot/build/sage/bsd-1/bsd_64_binary/build/sage-4.7/
> local/lib/R/share/make/shlib.mk: No such file or directory
> make: *** No rule to make target `/Users/buildbot/build/sage/bsd-1/
> bsd_64_binary/build/sage-4.7/local/lib/R/share/make/shlib.mk'.  Stop.
> ERROR: compilation failed for package ‘actuar’
> =====
>
> I do not understand, am I missing something on my Mac or the way sage
> has been compiled for Mac still does not support R packages
> installation?
>

Unfortunately, we still have some hard links that are created during
installation of the R package.  These are incredibly tricky to track
down.  Presumably you have no directories like the ones in

'/Users/buildbot/build/sage/bsd-1/bsd_64_binary/build/sage-4.7/local/
lib/R/doc/html/packages.html'

There are several open tickets to fix this sort of thing, but no one
has been working on them lately - presumably due to not understanding
enough about the issues.  Others may have some comments.

The workaround for you is pretty simple, though it will take a few
hours of sleep for it to happen.

1) Download the *source* to Sage, e.g. at 
http://www.sagemath.org/download-source.html

2) Follow the instructions to build Sage from source.  It consists of
going into a certain directory in Terminal and typing "make".

3) Wait a few hours.

4) Now try to install your package!

http://trac.sagemath.org/sage_trac/ticket/8274 is probably where this
should get fixed.  I'll put something about this there.


Good luck!  I use R optional packages all the time, so I hope it
should work for you if you build from source.

- kcrisman

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to