Installing RSVG on a Mac

10

I've already installed rsvg-convert once in a Mac, but it was using pkg-config, and now I'm trying to insert RSVG inside my own app. RSVG has many dependences, which probably should also be inside my app, but I'm not sure if that is going to work.

And before anyone says, yes, I've checked other possibilities: ImageMagick (not so configurable), qlmanage (horrible result), Inkscape (too heavy), mogrify (same then qlmanage), batik-rasterizer (doesn't support all the svg files and requires Java)... all of them has unsolvable problems, but I'm pretty sure that the RSVG problem can solved!

There is any RSVG bundle out there? There is any ready-to-go script to install RSVG without pkg-config? And if I would really need pkg-config, there is any way to install it in a temporarily folder, just to install RSVG and then disappear?

Thanks in advance.

VitorMM

Posted 2015-02-14T13:29:12.887

Reputation: 147

Answers

22

Homebrew provides formula for librsvg. Install Homebrew and type

brew install librsvg

el.pescado

Posted 2015-02-14T13:29:12.887

Reputation: 791

I need to put it inside my app. I can't install Homebew and download librsvg in all my users computers. – VitorMM – 2015-05-08T11:25:38.677

After running this command to have Homebrew install librsvg, I noticed that rsvg is not available (i.e. returns "command not found"). – soapergem – 2018-04-02T16:14:20.877

3@SoaperGEM The command should be rsvg-convert. – mb21 – 2018-09-27T11:28:45.690

0

emendelson

Posted 2015-02-14T13:29:12.887

Reputation: 101