[racket] Error when they use "programmatic" pkg

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Thu Oct 24 10:19:38 EDT 2013

Hi Ryan,

I presume that you ran that program in DrRacket.

DrRacket can't run all Racket programs, such as those that modify the
installation, due to the way it changes how compilation and evaluation
works. The GUI package manager in DrRacket will work, however, because
it runs on DrRacket's privileges and not inside it's "sandbox".

If my presumption is wrong, and you did it with actual Racket, I think
I'll need more information to debug, because I can't reproduce the
problem here.

As far as how to fix your installation, you will want to run "raco
link -l" and find the directory for the package you tried to install
then "raco link -r <dir>"

On Wed, Oct 23, 2013 at 11:27 AM, Ryan Newton <rrnewton at gmail.com> wrote:
> Here's the reproducer:
> (require pkg)
> (install "github://github.com/iu-c211/c211-libs/master")
> The error comes in the documentation building phase, for example:
> link: bad variable linkage;
>  reference to a variable that has the wrong procedure or structure-type
> shape
>   reference phase level: 0
>   variable module:
> "/Applications/Racket_v5.3.6_new/collects/racket/list.rkt"
>   variable phase: 0
>   reference in module:
> "/Applications/Racket_v5.3.6_new/collects/racket/bytes.rkt" in:
> add-between11.1
> This happens to me on my Mac, but Sam TH just reproduced it for me on Ubuntu
> with a fresh Racket 5.3.6 install.
> What would be great would be a quick recipe for healing the installation
> after this occurs, because right now, that error above is sticky.  That
> DrRacket installation will not be able to evaluate anything after it becomes
> broken, and I haven't found a way to fix it other than blowing away the
> installation and reinstalling.
>   -Ryan
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University

"The glory of God is Intelligence" - D&C 93

Posted on the users mailing list.