Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Rakudo Star for Windows still compiled/linked for exact FS location (c:\rakudo)?

And what should be done so Rakudo (Star) does not depend on the location in filesystem?

like image 547
gapsf Avatar asked Aug 14 '18 10:08

gapsf


People also ask

What's in the Rakudo compiler Directory?

This directory contains only the Rakudo compiler itself; it does not contain any of the modules, documentation, or other items that would normally come with a full Raku distribution. If you're after more than just the bare compiler, please download the latest Rakudo Star package.

What is the Rakudo Star bundle?

The Rakudo Star Bundle contains the Rakudo Compiler, a collection of modules from the Raku ecosystem , and the language documentation . It is released shortly after new Rakudo releases and can also be found on GitHub . You can also download one of the older releases. Install the Rakudo Star Bundle using your favourite package manager.

Which Raku compiler is currently in development?

It is currently the only major Raku compiler in active development . Originally developed within the Parrot project, the Rakudo source code repository was split from the project in February 2009 so that it could be developed independently, although there were still many dependencies at the time.

What is Raku Rakudo?

This is Rakudo, a Raku Programming Language compiler for the MoarVM, JVM and Javascript virtual machines. Rakudo is Copyright © 2008-2022, Yet Another Society. Rakudo is distributed under the terms of the Artistic License 2.0. For more details, see the full text of the license in the file LICENSE.


3 Answers

Update

Some time in 2019 Rakudo gained the ability to be relocatable. So there is now no technical limitation anymore.

As of today no installers that allow to choose the installation location have been provided yet though.

Original answer

As it currently stands Rakudo depends on the absolute installation path in several places including the binaries. Rakudo Star must install to that exact location (C:\rakudo) because that path is compiled into the binaries.

Making Rakudo independent of its FS location (aka portable) is possible, but simply not yet implemented.

like image 89
Patrick Böker Avatar answered Dec 26 '22 16:12

Patrick Böker


It takes someone familiar with the Wix windows installer to change its XML config file.

https://github.com/rakudo/star/blob/master/tools/build/star-product.wxs#L6

like image 37
Steve Mynott Avatar answered Dec 26 '22 15:12

Steve Mynott


This is just a hack and not a real solution, but it's possible to create a junction or, if you don't have C: drive at all, use subst command to still make Rakudo work without really putting it under the hardcoded directory.

like image 27
VZ. Avatar answered Dec 26 '22 15:12

VZ.