Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with make install-libsass #8

Open
keesse opened this issue Apr 11, 2021 · 5 comments
Open

Problem with make install-libsass #8

keesse opened this issue Apr 11, 2021 · 5 comments

Comments

@keesse
Copy link

keesse commented Apr 11, 2021

Hi @straight-shoota, I wanted to build the markdown example from the Alizarin shard.
That required libsass.
When running make install-libsass, I got the following error:

# make install-libsass
BUILD="shared" make -C "libsass-3.4.5" install
make[1]: Entering directory '/home/kees/Crystal/markdown/lib/sass/libsass-3.4.5'
mkdir /usr/local/lib
mkdir: cannot create directory ‘/usr/local/lib’: File exists
make[1]: *** [Makefile:263: /usr/local/lib] Error 1

I looked at the Makefile but could not figure out how to change it to using an already existing /usr/local/lib, so I renamed it, to later copy it back.

Then the same happened with /usr/local/include.

So I managed to get it installed
I'm using Ubuntu 20.10 and Crystal 1.0.0

@straight-shoota
Copy link
Owner

Hey, thanks for reporting this.

The install-libsass recipe is just for convenience to install a matching version on systems where the usual package manager does not provide one. It delegates to make install in the checked-out libsass repo as the make output shows. The error is caused in libsass' makefile. That's out of scope for this repo

@straight-shoota
Copy link
Owner

Btw. on Ubuntu 20.10 you should be able to install a libsass binary package via apt install libsass1-dev and don't need the makefile recipe for that.

@keesse
Copy link
Author

keesse commented Apr 11, 2021

That was the first thing I tried, but could not.

# apt install libsass1-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libsass1-dev

Do I need a PPA?

@straight-shoota
Copy link
Owner

Ah, sry, it's libsass-dev. The non-dev package is libsass1. Confusing names 🤷

@keesse
Copy link
Author

keesse commented Apr 11, 2021

Yes, that installs, but could not find it when starting...
Thank you for your support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants