0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Rocky8.9にcomposerをインストール

Posted at

概要

サーバー設定する時に、作業者から「Composer」入れておいてもらえます?って言われるようになった💦

「Composer」は、関数やクラスなど便利な機能がすでに実装されている機能のまとまり(パッケージライブラリ)を管理するためのツール

みたいです。

インストールと確認

dnf -y install php
dnf -y install php-json
dnf -y install wget
wget https://getcomposer.org/installer -O composer-installer.php
php composer-installer.php --filename=composer --install-dir=/usr/local/bin
composer --version
composer

備考

「json 拡張機能がありません。」と言われたので、上記で「php-json」をインストールしてます

[XXXX@XXXXXXXXXXX ~]# php composer-installer.php --filename=composer --install-dir=/usr/local/bin
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The json extension is missing.
Install it or recompile php without --disable-json
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?