lambdaclass / cairo-by-example

cairo-by-example.com
https://cairo-by-example.com/
Apache License 2.0
37 stars 23 forks source link

The install script is interfering with other installs on macOS #105

Open xqft opened 11 months ago

xqft commented 11 months ago

I found that having cairo-lang installed with the project's install script was interfering with another install made by the commands that starknet_in_rust`s makefile run for compiling contracts and executing tests, making compilation fail and me unable to run tests.

Uninstalling cairo-lang with brew and removing the CARGO_MANIFEST_DIR var from my env solved the problem. I didn't investigate it yet but the problem may be in the env variable.

Cevedale commented 8 months ago

You had a problem with the installation of "cairo-lang" that was interfering with your "starknet_in_rust" project, causing errors during compilation and testing. The temporary solution was to uninstall "cairo-lang" and remove the "CARGO_MANIFEST_DIR" environment variable. I'll write some possible issues that caused this problem: Check if the "CARGO_MANIFEST_DIR" variable is set correctly and not causing conflicts. Examine the dependencies and build tools of your "starknet_in_rust" project to ensure there are no conflicts with "cairo-lang." Try to pinpoint the exact source of the conflict by uninstalling "cairo-lang" and checking if the problem persists. If the issue continues, you might seek help from the online communities of the involved projects. Check if both projects are up to date with the latest versions. Verify system and dependency compatibility. If "brew" is causing conflicts with "cairo-lang," consider using an alternative package manager or building "cairo-lang" from source.