Skip to content

how to convert source code in windows package for linux (ubuntu)

4 messages · Douglas Bates, Josh Harmsen, Dirk Eddelbuettel

#
Hi All,

I was wondering if anyone here as successfully converted a package for
windows to one that will work in Linux?

What are the necessary steps if you have the source code?

Thanks,

Josh
#
On Fri, Oct 10, 2008 at 3:13 PM, Josh Harmsen <josh.harmsen at gmail.com> wrote:
If you have compiled code in the package I don't think it can be done.
 If you don't have compiled code then it can be done but it would be
somewhat awkward.  Essentially you would need to recreate the source
package from the installed package.

Why would you want to do this?  If you can start from the source
package the process is quite trivial.  Is there a reason that you
would have access to the Windows package but not the source package?
#
The package is RSAGA http://cran.r-project.org/web/packages/RSAGA/index.html

CRAN does have the package source available, which is what I want to
get to work in R on a Ubuntu Hardy 64bit.  If the process is trivial
could you guide me through it or point me to a resource that explains
it?

Many Thanks!

Josh
On Fri, Oct 10, 2008 at 2:05 PM, Douglas Bates <bates at stat.wisc.edu> wrote:
#
On 10 October 2008 at 15:42, Josh Harmsen wrote:
| The package is RSAGA http://cran.r-project.org/web/packages/RSAGA/index.html
| 
| CRAN does have the package source available, which is what I want to
| get to work in R on a Ubuntu Hardy 64bit.  If the process is trivial
| could you guide me through it or point me to a resource that explains
| it?

Not knowing anything about the particular details of this package I'd refer
you to what the package author clearly states in the DESCRIPTION info for the
package that is available at the URL you provide that:

	SystemRequirements: 	Windows, SAGA (>=2.0.2)

To make that even more plain, RSAGA depends 

	a) on SAGA (do you have that on Ubuntu amd64 ?),  and 

	b) on Windows.  

You are, in other words, out of luck.  

Look into virtualbox, a rather nice virtualization package included in Ubuntu
in the 'open source edition' and look into installing a Windows session
inside your Ubuntu system. You can share folders etc pp.  Maybe that can help
you.

Dirk