voltux / nvim_ide_presentation

A neorg presentation for nvim as an IDE
MIT License
8 stars 2 forks source link

Could not build with Mac Arm #1

Open CedricLphn opened 1 year ago

CedricLphn commented 1 year ago

Hello sir,

Firstly, thank you for your presentation of Neovim in VTT 2023 by OVHCloud.

I want to test your docker container but I have a Mac M1 ARM with latest version of docker desktop but it's failed when installing Packersync. I supposed a problem of compatibility processor between x86_64/arm.

cedric@Cedrics-MacBook-Pro:~/nvim_ide_presentation ‹main›$ docker build . -t debian-nvim
...
 => ERROR [29/34] RUN /home/voltux/opt/nvim-linux64/bin/nvim --headless -  0.2s
------
 > [29/34] RUN /home/voltux/opt/nvim-linux64/bin/nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync':
#32 0.186 qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
------
executor failed running [/bin/sh -c /home/voltux/opt/nvim-linux64/bin/nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync']: exit code: 255

Thanks, Cedric

voltux commented 1 year ago

seems like an architecture problem, could you check the neovim url from the releases here: https://github.com/neovim/neovim/releases/tag/stable and modify the Dockerfile accordingly to test?

it's these four lines that need adjusting for the right binary:

RUN wget https://github.com/neovim/neovim/releases/download/v0.8.0/nvim-linux64.tar.gz
RUN tar -xzvf nvim-linux64.tar.gz
RUN rm nvim-linux64.tar.gz
RUN echo 'alias nvim=$HOME/opt/nvim-linux64/bin/nvim' >> /home/voltux/.bashrc