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

Arm64 Support #19

Closed
argentini opened this issue Oct 31, 2021 · 5 comments
Closed

Arm64 Support #19

argentini opened this issue Oct 31, 2021 · 5 comments
Labels

Comments

@argentini
Copy link

Are there plans for Arm64 support (e.g. Apple Silicon)?

@xoofx
Copy link
Owner

xoofx commented Oct 31, 2021

Unlikely before GitHub actions support it for their virtual environments.

@xoofx xoofx added the question label Oct 31, 2021
@saxx
Copy link

saxx commented Dec 10, 2021

Is there any way to get SharpScss running on an M1 Mac (with .NET 6 for ARM)? It seems I cannot get past this error:

System.DllNotFoundException: Unable to load shared library 'libsass' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(liblibsass, 0x0001): tried: 'liblibsass' (no such file), '/usr/local/lib/liblibsass' (no such file), '/usr/lib/liblibsass' (no such file), '/Users/hannes/Projects/Igevia/src/backend/liblibsass' (no such file), '/usr/local/lib/liblibsass' (no such file), '/usr/lib/liblibsass' (no such file)

@saxx
Copy link

saxx commented Dec 10, 2021

Follow-Up on my last post: I got it running on an M1 Mac (.NET 6 for ARM) by downloading the latest libsass version via homebrew, then I dropped the libsass.dylib from the homebrew directory into the bin directory of my application.

SharpScss works now :) This is in no way ideal, but at least it's running for now. Thank you for this great library.

@danroot
Copy link

danroot commented Sep 30, 2022

Ran into this just now and was stumped. Thanks to @saxx I was able to do this to resolve for now:

brew install libsass
cp /opt/homebrew/Cellar/libsass/3.6.5/lib/libsass.dylib ./bin/Debug/net6.0/libsass.dylib

I'll probably add to my .net code to do this automatically if in an ARM environment.

I second a switch to dartsass or some other cross-platform sass engine that can "just work" Mac M1/M2 (or conceivably other ARM environments).

@xoofx
Copy link
Owner

xoofx commented Nov 2, 2024

Fixed in 2.1.0+

@xoofx xoofx closed this as completed Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants