asdf-crystal icon indicating copy to clipboard operation
asdf-crystal copied to clipboard

PCRE-Lib is missing on Ubuntu

Open kronn opened this issue 4 years ago • 4 comments

I am running Ubuntu 18.04 and installed crystal 0.33.0 via asdf. I seemingly installed fine, crystal --help ran fine. However, compiling a crystal-file led to complaints about "libpcre" missing.

I removed the asdf-installed version and installed the official/upstream package. This works as advertised. I would like to switch to an asdf-managed version, but am currently blocked.

There may be other depdencies missing, which were shadowed by this error.

kronn avatar Mar 26 '20 14:03 kronn

@kronn I'm not an Ubuntu user, so I haven't tried, but have you installed libpcre3-dev?

smorimoto avatar Mar 26 '20 16:03 smorimoto

I fix it with: sudo apt-get install libevent-dev

rjurado01 avatar May 31 '22 21:05 rjurado01

FWIW, sudo apt-get install libpcre3-dev worked for me on Ubuntu 22.04.2

aisrael avatar May 30 '23 00:05 aisrael

I think my point is: I would expect asdf to manage those dependencies for me. At the very least, I'd like to be informed which libraries are missing.

And yes, of course I can just install these dependencies manually. IIRC, dependencies for other tools or languages are installed automatically. And I realize that this might leave a messy system behind in case I ever want to remove things. Personally, I am fine with this.

Am I understanding the use-case wrong? Am I the problem here? :kissing_heart:

kronn avatar Jun 04 '23 20:06 kronn