I was trying to configure SDL2 and SDL_image for my project but ran into the permission denied when it tried to create a file at /usr/local/bin. Is there anyway around this? Error log below:
Are you able to post your config.yml file as this will provide more info about the environment you are defining and how you are trying to do the deployment.
As I do not know what commands you are running, I have to put forward a pure guess for now - are you running the install command using sudo? If not try using it.
Here’s my config file:
version: 2.1
#on: [push, pull_request]
jobs:
build-linux:
machine:
image: ubuntu-2204:2022.04.1
steps:
- checkout
- run:
command: |
echo Building Linux Version
cmake .
cd Dependencies/Linux-SDL2-2.0.22
chmod +x configure
./configure
make
make install
cd …/Linux-SDL2_image-2.0.5
chmod +x configure
./configure
make
make install
cd …/…
make
workflows:
build-workflow:
jobs:
- build-linux