Install ASDF on Mageia 9

PHPz
Release: 2024-09-11 08:31:02
Original
288 people have browsed it

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.

The above is the detailed content of Install ASDF on Mageia 9. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!