"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Install ASDF on Mageia 9

Install ASDF on Mageia 9

Published on 2024-09-14
Browse:823

Install ASDF on Mageia 9

Today we go to install ASDF on Mageia 9. The next steps will go install the plugins to PHP and Node.js.

  1. To install ASDF on version 0.14.1, I used the version for Git ZSH:

git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.1

echo '. "$HOME/.asdf/asdf.sh"' >> ~/.zshrc

echo 'fpath=(${ASDF_DIR}/completions $fpath)' >> ~/.zshrc

echo 'autoload -Uz compinit && compinit' >> ~/.zshrc

  1. Add Node.js Plugin

sudo dnf install gnupg2 curl gawk

asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git

  1. Add PHP plugin

sudo dnf install autoconf bison re2c libxml2-devel sqlite3-devel libgd-devel gcc-c lib64oniguruma-devel libpqxx-devel readline-devel libzip-devel

asdf plugin-add php https://github.com/asdf-community/asdf-php.git

Done, ASDF with PHP and Node.js installed.

Release Statement This article is reproduced at: https://dev.to/jeanmfdias/install-asdf-on-mageia-9-2omo?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3