Upgrade to Pro — share decks privately, control downloads, hide ads and more …

即php (PHPカンファレンス2017 懇親会LT)

uzulla
October 08, 2017

即php (PHPカンファレンス2017 懇親会LT)

2017-10-08 PHPカンファレンス2017 懇親会LT
uzulla

uzulla

October 08, 2017
Tweet

More Decks by uzulla

Other Decks in Programming

Transcript

  1. PHP͸1ϑΝΠϧͰಈ͘ » ͨͩ͘͠͸ɺʮ΄΅ʯڞ༗ϥΠϒϥϦΛল͍ͯϏϧυ Ͱ͖Δ $ wget php.src.tgz; tar xvzf php.src.tgz;

    cd php-src $ ./configure --disable-all \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --enable-pdo \ --enable-mbstring \ --enable-json
  2. ldd root@test:~/php-7.1.10# ldd ~/one-file-php linux-vdso.so.1 => (0x00007ffeb2cc2000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2

    (0x00007f5c39cfe000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5c399f5000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5c397f0000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5c39426000) /lib64/ld-linux-x86-64.so.2 (0x0000559e2e497000) ৭ʑ͋Δ͚ͲɺελςΟοΫϏϧυ׬ᘳͰ͸ͳ͍Ͱ͢Ͷ
  3. ༨ஊͱͯ͠ » PHPΛϏϧυʹ৭ʑ໘౗ͳ४උ͍Γ·͢ΑͶʁ » (apt-get|brew) install blah blah hogehoge…… »

    ͜Εͩͱ͍Βͳ͍ʂ࠷ߴʂʂʂ » ʮͳʹ͕࠷ߴͳͷʁʯʮ৭ʑ͋Δʯ » ΈΜͳ΋ͬͱconfigureͰmake͠·ͬͨ͘Γ͠·͠ ΐ͏