LolipopにComposerを入れる

 

php -v

pathを通す必要があります。

mkdir $HOME/bin

 

ln -s /usr/local/bin/php8.3 $HOME/bin/php

 

echo "export PATH=$HOME/bin:$PATH" >> .bash_profile

 

source ~/.bash_profile

 

Composerのインストール

php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"

 

mv composer.phar bin

 

cd bin

 

mv composer.phar composer

bin に composerを移動

vi ~/.bash_profile

.bash_profileに追記します。

export PATH=$PATH:bin
source ~/.bash_profile

更新して確認。エラー無ければOK