I've been trying to get some of my packages from Homebrew moved to Macports recently. One such package was the Crystal programming language. Unfortunately, sudo port install crystal doesn't work:

$ sudo port install crystal
Error: Port crystal not found

Likewise, port info and port search yield no info about the Crystal language:

$ port info crystal
Error: Port crystal not found
$ port search crystal
crystfel @0.6.1_6 (science)
    A suite of programs for processing serial crystallography data

gnome-chemistry-utils @0.14.17 (gnome, science, chemistry)
    This package provides a set of Gtk3-based applications for drawing and viewing molecules, crystals and spectra.

gpp4 @1.3.1_1 (science)
    macromolecular crystallography library

xcrysden @1.5.60_2 (science)
    X-windows CRYstalline Structures and DENsities

Found 4 ports.

Yet, when I search macports.org for crystal, I see it:

enter image description here

Here's the search URL.

What's going on? Why can't I install Crystal, yet I can see it on the website?

  • Have you tried updating Mac Ports with sudo port selfupdate? – JBis Apr 24 '18 at 19:16
  • @Josh Doh! That did the trick. If you write that as an answer, I'll accept it. – GDP2 Apr 24 '18 at 19:19
  • I have added my answer. Additionally, can you please edit your question title to be more broad as it may allow others to find the solution easier even if they are not looking for Crystal. – JBis Apr 24 '18 at 19:32
  • 1
    @Josh I changed the title as you requested. – GDP2 Apr 24 '18 at 19:34

Try updating Mac Ports using the command sudo port selfupdate. You can read more about updating and installing Mac Ports here.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .