Installing packages in Racket
Asked Answered
S

1

8

I installed DrRacket, the full version not the minimal but I don't have the packages.

When I run this code:

#lang racket

(provide (all-defined-out))

(require rsound)

(play ding)

It gives me this error:

standard-module-name-resolver: collection not found
  for module path: rsound
  collection: "rsound"
  in collection directories:
   C:\Users\Theodor\AppData\Roaming\Racket\6.3\collects
   C:\Program Files\Racket\collects
   ... [161 additional linked and package directories] in: rsound
  no packages suggestions are available .

In "collects" I have only "catalog.sqlite".

How do I install packages for DrRacket? "Update catalog" didn't work. The other similar questions didn't help.

Symphony answered 18/1, 2016 at 10:39 Comment(2)
Try raco pkg install some_module in command line?Bookman
rako: undefined; cannot reference undefined identifierSymphony
S
19

Author of rsound here. Yes, liweijian got it right, you need to install the package. There are two ways to do this:

  • In DrRacket, go to "File > Package Manager ..." and type "rsound" in the "do what I mean" box.

  • Or, at the command-line, run

    raco pkg install rsound
    

Let me know if you have any problems with this!

Saccule answered 18/1, 2016 at 17:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.