Re: [racket-users] "Link: bad variable linkage" when trying to work through tutorial

2017-05-13 Thread Matthias Felleisen

How did you install Racket? Via the Mac installer from ‘download’? 

[This error happens when you had an older installation and the new one doesn’t 
re-compile the byte code files.]



> On May 13, 2017, at 5:19 PM, onn...@gmail.com wrote:
> 
> Hi all,
> 
> While working through the first bits of the HtDP2e book, in DrRacket 6.9 on 
> Mac, I get the following error whenever I try to run any program in the 
> "Definitions" window that contains (require 2htdp/universe):
> 
> link: bad variable linkage;
> reference to a variable that is not a procedure or structure-type constant 
> across all instantiations
>  reference phase level: 0
>  variable module: "/Applications/Racket 
> v6.9/share/pkgs/string-constants-lib/string-constants/string-constant.rkt"
>  variable phase: 0
>  reference in module: "/Applications/Racket 
> v6.9/share/pkgs/htdp-lib/2htdp/private/world.rkt"
> 
> Googling the error didn't help me out, and I'm afraid I'm too much of a noob 
> right now to understand what's going on. What's more, I'm really sure this 
> worked fine a few days ago. Restarting DrRacket doesn't help either.
> 
> Any suggestions would be most welcome! Thanks in advance :-)
> 
> Best regards,
> 
> 
> Onno
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] "Link: bad variable linkage" when trying to work through tutorial

2017-05-13 Thread Dmitry Pavlov
Onno,

That happens when the .zo files produced by plain command-line racket conflict 
with ones that come from DrRacket. Or the other way around, I am not sure. Or 
something else related to .zo files that are no longer valid for some reason. 
Anyway, try removing the 'compiled' directories from your source tree and 
restarting.

Regards,

Dmitry

On May 14, 2017 12:19:22 AM EET, onn...@gmail.com wrote:
>Hi all,
>
>While working through the first bits of the HtDP2e book, in DrRacket
>6.9 on Mac, I get the following error whenever I try to run any program
>in the "Definitions" window that contains (require 2htdp/universe):
>
>link: bad variable linkage;
>reference to a variable that is not a procedure or structure-type
>constant across all instantiations
>  reference phase level: 0
>variable module: "/Applications/Racket
>v6.9/share/pkgs/string-constants-lib/string-constants/string-constant.rkt"
>  variable phase: 0
>reference in module: "/Applications/Racket
>v6.9/share/pkgs/htdp-lib/2htdp/private/world.rkt"
>
>Googling the error didn't help me out, and I'm afraid I'm too much of a
>noob right now to understand what's going on. What's more, I'm really
>sure this worked fine a few days ago. Restarting DrRacket doesn't help
>either.
>
>Any suggestions would be most welcome! Thanks in advance :-)
>
>Best regards,
>
>
>Onno
>
>-- 
>You received this message because you are subscribed to the Google
>Groups "Racket Users" group.
>To unsubscribe from this group and stop receiving emails from it, send
>an email to racket-users+unsubscr...@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] "Link: bad variable linkage" when trying to work through tutorial

2017-05-13 Thread onnodb
Hi all,

While working through the first bits of the HtDP2e book, in DrRacket 6.9 on 
Mac, I get the following error whenever I try to run any program in the 
"Definitions" window that contains (require 2htdp/universe):

link: bad variable linkage;
 reference to a variable that is not a procedure or structure-type constant 
across all instantiations
  reference phase level: 0
  variable module: "/Applications/Racket 
v6.9/share/pkgs/string-constants-lib/string-constants/string-constant.rkt"
  variable phase: 0
  reference in module: "/Applications/Racket 
v6.9/share/pkgs/htdp-lib/2htdp/private/world.rkt"

Googling the error didn't help me out, and I'm afraid I'm too much of a noob 
right now to understand what's going on. What's more, I'm really sure this 
worked fine a few days ago. Restarting DrRacket doesn't help either.

Any suggestions would be most welcome! Thanks in advance :-)

Best regards,


Onno

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.