Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add lookup static complie php-cli #9

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jingjingxyk
Copy link

@jingjingxyk jingjingxyk commented Apr 11, 2023

lookup static compline php-cli

test example 1:

test -f swoole-cli-v5.0.2-linux-x64.tar.xz || curl -LO https://github.com/swoole/swoole-src/releases/download/v5.0.2/swoole-cli-v5.0.2-linux-x64.tar.xz
test -f swoole-cli-v5.0.2-linux-x64.tar ||  xz -d -k swoole-cli-v5.0.2-linux-x64.tar.xz
test -f swoole-cli ||  tar -xvf swoole-cli-v5.0.2-linux-x64.tar

chmod a+x swoole-cli
cp -f swoole-cli /usr/local/bin/
ln -sf /usr/local/bin/swoole-cli /usr/local/bin/php

test example 2:

cd /home/yaokun/workspace/symfony-cli
test -f php-8.1.8-static-bin-x86_64.tar.gz || curl -LO https://dl.zhamao.xin/php-bin/file/php-8.1.8-static-bin-x86_64.tar.gz
tar -zxvf php-8.1.8-static-bin-x86_64.tar.gz
chmod a+x php

build symfony-cli

export PATH=/home/yaokun/workspace/symfony-cli:$PATH

cd /home/jingjingxyk/wokspaces/symfony-cli

cat >> go.mod <<EOF
replace github.com/symfony-cli/phpstore v1.0.7 => github.com/jingjingxyk/phpstore v0.0.0-20230411143109-d6883324c60c
EOF


go build 

./symfony-cli local:php:list

image

reference:
swoole-cli
static-php-cli

@jingjingxyk jingjingxyk changed the title with static complie php-cli add lookup static complie php-cli Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant