draffle-io / draffle

dRaffle is a decentralized raffle protocol on Solana
82 stars 81 forks source link

chmod doesn't convert metaplex-token-metadata-test-client to executable on mac os #28

Open shockValue666 opened 2 years ago

shockValue666 commented 2 years ago

even though i run chmod +x scripts/metaplex-token-metadata-test-client on terminal, i still get the following error when i try to start_dev.sh:

/Users/xxx/Desktop/moreRaffles/draffle/scripts/metaplex-token-metadata-test-client: cannot execute binary file

moneytoad888 commented 1 year ago

even though i run chmod +x scripts/metaplex-token-metadata-test-client on terminal, i still get the following error when i try to start_dev.sh:

/Users/xxx/Desktop/moreRaffles/draffle/scripts/metaplex-token-metadata-test-client: cannot execute binary file

You need to build the binary for mac, it is extremely annoying but unfortunately the binary isn't cross platform

shockValue666 commented 1 year ago

You ok thnx i fixed it

pbredenberg commented 1 year ago

Would someone mind sharing how to build the binary for mac? The docs say to run cargo build --release but this has no effect, still cannot execute metaplex-token-metadata-test-client on macOS for me

EDIT:

I realized what the docs meant was that you need to clone metaplex-program-library, cd into the token-metadata directory, and within there run cargo build --release. The executable version will then be inside token-metadata/target/release.

Copy the new binary to draffle/scripts/.