macos Catalina 에 php 5.6을 설치하는중 libzip 에서 다운로드 오류가 발생함.

 

$ brew search php

$ brew install shivammathur/php/php@5.6

ellords-Mac-book:~ ellord$ brew search php
==> Formulae
brew-php-switcher                        shivammathur/php/php@7.2-zts
php                                      shivammathur/php/php@7.3
php-code-sniffer                         shivammathur/php/php@7.3-debug
php-cs-fixer                             shivammathur/php/php@7.3-debug-zts
php@8.1                                  shivammathur/php/php@7.3-zts
php@8.2                                  shivammathur/php/php@7.4
php@8.3                                  shivammathur/php/php@7.4-debug
phpbrew                                  shivammathur/php/php@7.4-debug-zts
phpmd                                    shivammathur/php/php@7.4-zts
phpmyadmin                               shivammathur/php/php@8.0
phpstan                                  shivammathur/php/php@8.0-debug
phpunit                                  shivammathur/php/php@8.0-debug-zts
shivammathur/php/autoconf@2.69           shivammathur/php/php@8.0-zts
shivammathur/php/bison@2.7               shivammathur/php/php@8.1
shivammathur/php/php                     shivammathur/php/php@8.1-debug
shivammathur/php/php-debug               shivammathur/php/php@8.1-debug-zts
shivammathur/php/php-debug-zts           shivammathur/php/php@8.1-zts
shivammathur/php/php-zts                 shivammathur/php/php@8.2
shivammathur/php/php@5.6                 shivammathur/php/php@8.2-debug
shivammathur/php/php@5.6-debug           shivammathur/php/php@8.2-debug-zts
shivammathur/php/php@5.6-debug-zts       shivammathur/php/php@8.2-zts
shivammathur/php/php@5.6-zts             shivammathur/php/php@8.3
shivammathur/php/php@7.0                 shivammathur/php/php@8.3-debug
shivammathur/php/php@7.0-debug           shivammathur/php/php@8.3-debug-zts
shivammathur/php/php@7.0-debug-zts       shivammathur/php/php@8.3-zts
shivammathur/php/php@7.0-zts             shivammathur/php/php@8.5
shivammathur/php/php@7.1                 shivammathur/php/php@8.5-debug
shivammathur/php/php@7.1-debug           shivammathur/php/php@8.5-debug-zts
shivammathur/php/php@7.1-debug-zts       shivammathur/php/php@8.5-zts
shivammathur/php/php@7.1-zts             pop
shivammathur/php/php@7.2                 pup
shivammathur/php/php@7.2-debug           pcp
shivammathur/php/php@7.2-debug-zts

==> Casks
eclipse-php                phpstorm                   pop
ellords-Mac-book:~ ellord$ brew install shivammathur/php/php@5.6

 

 

libzip 다운로드시 다음과 같은 에러 발생하고 종료됨.

==> Fetching libzip
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/24d43afff04bfdbc72fde2b7ac2
############################################################################################# 100.0%
==> Downloading https://libzip.org/download/libzip-1.11.3.tar.xz
##O=#  #                                                                                           
curl: (35) error:14004410:SSL routines:CONNECT_CR_SRVR_HELLO:sslv3 alert handshake failure
Error: php@5.6: Failed to download resource "libzip"
Download failed: https://libzip.org/download/libzip-1.11.3.tar.xz

 

macports 를 이용하여 libzip만 수동으로 설치함.

 

아래 사이트에서 Catalina버전용 macports 를 설치함.

 

https://guide.macports.org/chunked/installing.macports.html

 

macports 설치 후 다른 터미널 창을 하나 열어서 libzip 설치함.

 

$ sudo port install libzip

ellords-Mac-book:~ ellord$ sudo port install libzip
Password:
--->  Computing dependencies for libzip
The following dependencies will be installed: 
 bzip2
 zlib
Continue? [Y/n]: Y
--->  Fetching archive for bzip2
--->  Attempting to fetch bzip2-1.0.8_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/bzip2
--->  Attempting to fetch bzip2-1.0.8_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/bzip2
--->  Installing bzip2 @1.0.8_0
--->  Activating bzip2 @1.0.8_0
--->  Cleaning bzip2
--->  Fetching archive for zlib
--->  Attempting to fetch zlib-1.3.1_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/zlib
--->  Attempting to fetch zlib-1.3.1_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/zlib
--->  Installing zlib @1.3.1_0
--->  Activating zlib @1.3.1_0
--->  Cleaning zlib
--->  Fetching archive for libzip
--->  Attempting to fetch libzip-1.11.3_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/libzip
--->  Attempting to fetch libzip-1.11.3_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/libzip
--->  Installing libzip @1.11.3_0
--->  Activating libzip @1.11.3_0
--->  Cleaning libzip
--->  Scanning binaries for linking errors
--->  Found 2 broken files, matching files to ports
--->  Found 1 broken port, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: libzip @1.11.3
Continue? [Y/n]: Y
--->  Computing dependencies for libzip
--->  Cleaning libzip
--->  Scanning binaries for linking errors
--->  Found 2 broken files, matching files to ports
--->  Found 1 broken port, determining rebuild order
--->  Rebuilding in order
     libzip @1.11.3_0
--->  Fetching archive for libiconv
--->  Attempting to fetch libiconv-1.17_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/libiconv
--->  Attempting to fetch libiconv-1.17_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/libiconv
--->  Installing libiconv @1.17_0
--->  Activating libiconv @1.17_0
--->  Cleaning libiconv
--->  Computing dependencies for gettext-runtime
--->  Fetching archive for gettext-runtime
--->  Attempting to fetch gettext-runtime-0.22.5_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/gettext-runtime
--->  Attempting to fetch gettext-runtime-0.22.5_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/gettext-runtime
--->  Installing gettext-runtime @0.22.5_0
--->  Activating gettext-runtime @0.22.5_0
--->  Cleaning gettext-runtime
--->  Computing dependencies for xz
--->  Fetching archive for xz
--->  Attempting to fetch xz-5.6.4_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/xz
--->  Attempting to fetch xz-5.6.4_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/xz
--->  Installing xz @5.6.4_0
--->  Activating xz @5.6.4_0
--->  Cleaning xz
--->  Fetching archive for libcxx
--->  Attempting to fetch libcxx-5.0.1_5.any_any.noarch.tbz2 from https://packages.macports.org/libcxx
--->  Attempting to fetch libcxx-5.0.1_5.any_any.noarch.tbz2.rmd160 from https://packages.macports.org/libcxx
--->  Installing libcxx @5.0.1_5
--->  Activating libcxx @5.0.1_5
--->  Cleaning libcxx
--->  Fetching archive for brotli
--->  Attempting to fetch brotli-1.1.0_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/brotli
--->  Attempting to fetch brotli-1.1.0_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/brotli
--->  Installing brotli @1.1.0_0
--->  Activating brotli @1.1.0_0
--->  Cleaning brotli
--->  Fetching archive for nghttp2
--->  Attempting to fetch nghttp2-1.65.0_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/nghttp2
--->  Attempting to fetch nghttp2-1.65.0_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/nghttp2
--->  Installing nghttp2 @1.65.0_0
--->  Activating nghttp2 @1.65.0_0
--->  Cleaning nghttp2
--->  Computing dependencies for libunistring
--->  Fetching archive for libunistring
--->  Attempting to fetch libunistring-1.3_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/libunistring
--->  Attempting to fetch libunistring-1.3_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/libunistring
--->  Installing libunistring @1.3_0
--->  Activating libunistring @1.3_0
--->  Cleaning libunistring
--->  Computing dependencies for libidn2
--->  Fetching archive for libidn2
--->  Attempting to fetch libidn2-2.3.8_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/libidn2
--->  Attempting to fetch libidn2-2.3.8_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/libidn2
--->  Installing libidn2 @2.3.8_0
--->  Activating libidn2 @2.3.8_0
--->  Cleaning libidn2
--->  Computing dependencies for libpsl
--->  Fetching archive for libpsl
--->  Attempting to fetch libpsl-0.21.5-20240306_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/libpsl
--->  Attempting to fetch libpsl-0.21.5-20240306_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/libpsl
--->  Installing libpsl @0.21.5-20240306_0
--->  Activating libpsl @0.21.5-20240306_0
--->  Cleaning libpsl
--->  Computing dependencies for openssl3
--->  Fetching archive for openssl3
--->  Attempting to fetch openssl3-3.4.1_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/openssl3
--->  Attempting to fetch openssl3-3.4.1_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/openssl3
--->  Installing openssl3 @3.4.1_0
--->  Activating openssl3 @3.4.1_0
--->  Cleaning openssl3                                  
--->  Computing dependencies for openssl
--->  Fetching archive for openssl
--->  Attempting to fetch openssl-3_22.darwin_19.x86_64.tbz2 from https://packages.macports.org/openssl
--->  Attempting to fetch openssl-3_22.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/openssl
--->  Installing openssl @3_22
--->  Activating openssl @3_22
--->  Cleaning openssl                                   
--->  Fetching archive for curl-ca-bundle
--->  Attempting to fetch curl-ca-bundle-8.12.1_0.any_any.noarch.tbz2 from https://packages.macports.org/curl-ca-bundle
--->  Attempting to fetch curl-ca-bundle-8.12.1_0.any_any.noarch.tbz2.rmd160 from https://packages.macports.org/curl-ca-bundle
--->  Installing curl-ca-bundle @8.12.1_0
--->  Activating curl-ca-bundle @8.12.1_0
--->  Cleaning curl-ca-bundle
--->  Fetching archive for lz4
--->  Attempting to fetch lz4-1.10.0_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/lz4
--->  Attempting to fetch lz4-1.10.0_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/lz4
--->  Installing lz4 @1.10.0_0
--->  Activating lz4 @1.10.0_0
--->  Cleaning lz4
--->  Computing dependencies for zstd
--->  Fetching archive for zstd
--->  Attempting to fetch zstd-1.5.6_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/zstd
--->  Attempting to fetch zstd-1.5.6_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/zstd
--->  Installing zstd @1.5.6_0
--->  Activating zstd @1.5.6_0
--->  Cleaning zstd
--->  Computing dependencies for curl
--->  Fetching archive for curl
--->  Attempting to fetch curl-8.12.1_0+brotli+http2+idn+psl+ssl+zstd.darwin_19.x86_64.tbz2 from https://packages.macports.org/curl
--->  Attempting to fetch curl-8.12.1_0+brotli+http2+idn+psl+ssl+zstd.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/curl
--->  Installing curl @8.12.1_0+brotli+http2+idn+psl+ssl+zstd
--->  Activating curl @8.12.1_0+brotli+http2+idn+psl+ssl+zstd
--->  Cleaning curl                                      
--->  Fetching archive for expat
--->  Attempting to fetch expat-2.6.4_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/expat
--->  Attempting to fetch expat-2.6.4_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/expat
--->  Installing expat @2.6.4_0
--->  Activating expat @2.6.4_0
--->  Cleaning expat
--->  Fetching archive for icu
--->  Attempting to fetch icu-76.1_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/icu
--->  Attempting to fetch icu-76.1_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/icu
--->  Installing icu @76.1_0
--->  Activating icu @76.1_0
--->  Cleaning icu                                       
--->  Computing dependencies for libxml2
--->  Fetching archive for libxml2
--->  Attempting to fetch libxml2-2.13.6_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/libxml2
--->  Attempting to fetch libxml2-2.13.6_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/libxml2
--->  Installing libxml2 @2.13.6_0
--->  Activating libxml2 @2.13.6_0
--->  Cleaning libxml2
--->  Fetching archive for lzo2
--->  Attempting to fetch lzo2-2.10_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/lzo2
--->  Attempting to fetch lzo2-2.10_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/lzo2
--->  Installing lzo2 @2.10_0
--->  Activating lzo2 @2.10_0
--->  Cleaning lzo2
--->  Fetching archive for libb2
--->  Attempting to fetch libb2-0.98.1_1.darwin_19.x86_64.tbz2 from https://packages.macports.org/libb2
--->  Attempting to fetch libb2-0.98.1_1.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/libb2
--->  Installing libb2 @0.98.1_1
--->  Activating libb2 @0.98.1_1
--->  Cleaning libb2
--->  Computing dependencies for libarchive
--->  Fetching archive for libarchive
--->  Attempting to fetch libarchive-3.7.9_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/libarchive
--->  Attempting to fetch libarchive-3.7.9_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/libarchive
--->  Installing libarchive @3.7.9_0
--->  Activating libarchive @3.7.9_0
--->  Cleaning libarchive
--->  Fetching archive for ncurses
--->  Attempting to fetch ncurses-6.5_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/ncurses
--->  Attempting to fetch ncurses-6.5_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/ncurses
--->  Installing ncurses @6.5_0
--->  Activating ncurses @6.5_0
--->  Cleaning ncurses                                   
--->  Computing dependencies for cmake
--->  Fetching archive for cmake
--->  Attempting to fetch cmake-3.31.3_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/cmake
--->  Attempting to fetch cmake-3.31.3_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/cmake
--->  Installing cmake @3.31.3_0
--->  Activating cmake @3.31.3_0
--->  Cleaning cmake                                     
--->  Fetching archive for gmp
--->  Attempting to fetch gmp-6.3.0_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/gmp
--->  Attempting to fetch gmp-6.3.0_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/gmp
--->  Installing gmp @6.3.0_0
--->  Activating gmp @6.3.0_0
--->  Cleaning gmp
--->  Computing dependencies for coreutils
--->  Fetching archive for coreutils
--->  Attempting to fetch coreutils-9.5_1.darwin_19.x86_64.tbz2 from https://packages.macports.org/coreutils
--->  Attempting to fetch coreutils-9.5_1.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/coreutils
--->  Installing coreutils @9.5_1
--->  Activating coreutils @9.5_1
--->  Cleaning coreutils                                 
--->  Computing dependencies for libzip
--->  Fetching distfiles for libzip
--->  Attempting to fetch libzip-1.11.3.tar.xz from https://distfiles.macports.org/libzip
--->  Verifying checksums for libzip
--->  Extracting libzip
--->  Configuring libzip
--->  Building libzip                                    
--->  Staging libzip into destroot                       
--->  Deactivating libzip @1.11.3_0                      
--->  Cleaning libzip
--->  Uninstalling libzip @1.11.3_0
--->  Cleaning libzip
--->  Computing dependencies for libzip
--->  Installing libzip @1.11.3_0
--->  Activating libzip @1.11.3_0
--->  Cleaning libzip
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  No broken ports found.
--->  Some of the ports you installed have notes:
  cmake has the following notes:
    The CMake GUI and Docs are now provided as subports 'cmake-gui' and
    'cmake-docs', respectively.
  coreutils has the following notes:
    The tools provided by GNU coreutils are prefixed with the character 'g' by
    default to distinguish them from the BSD commands.
    For example, cp becomes gcp and ls becomes gls.
    
    If you want to use the GNU tools by default, add this directory to the front
    of your PATH environment variable:
        /opt/local/libexec/gnubin/
  libpsl has the following notes:
    libpsl API documentation is provided by the libpsl-docs port.
ellords-Mac-book:~ ellord$

 

 

 

 

 

 

'Mac' 카테고리의 다른 글

macOs 10.15.7 catalina php7.4 upgrade 성공기  (0) 2024.06.15
OSX Mojave freetype install error  (0) 2023.03.18
Change OSX ssh port 맥OS ssh 포트 변경  (0) 2022.11.04
OSX mariadb 설치  (0) 2022.04.21
osx apache httpd는 어디에 설치?  (0) 2022.04.21
블로그 이미지

엘로드넷

,

Catalina 클린설치 후 php 7.4로 업그레이드

 

기존 : 7.3.11

변경 : 7.4.33

 

 

1. Homebrew 가 설치되어 있지 않으면 설치한다.

 

ellord@ellords-Mac-mini % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

 

 

2. brew php repo를 변경한다.

 

ellord@ellords-Mac-mini % brew tap shivammathur/php
ellord@ellords-Mac-mini % brew install php@7.4

 

 

3. 설치로그...

 

ellord@ellords-Mac-mini % brew tap shivammathur/php
==> Tapping shivammathur/php
Cloning into '/usr/local/Homebrew/Library/Taps/shivammathur/homebrew-php'...
remote: Enumerating objects: 27780, done.
remote: Counting objects: 100% (1067/1067), done.
remote: Compressing objects: 100% (208/208), done.
remote: Total 27780 (delta 894), reused 1021 (delta 859), pack-reused 26713
Receiving objects: 100% (27780/27780), 4.09 MiB | 17.97 MiB/s, done.
Resolving deltas: 100% (22388/22388), done.
Tapped 44 formulae (88 files, 5.6MB).
ellord@ellords-Mac-mini apache2 % brew install php@7.4
Warning: You are using macOS 10.15.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

Warning: shivammathur/php/php@7.4 has been deprecated because it is a versioned formula!
==> Fetching dependencies for shivammathur/php/php@7.4: bison, apr, ca-certificates, openssl@3, apr-util, cmake, brotli, pkg-config, libnghttp2, pcre2, httpd, re2c, argon2, aspell, m4, autoconf, libunistring, gettext, libidn2, libssh2, openldap, rtmpdump, lz4, xz, zstd, curl, libtool, unixodbc, freetds, libpng, freetype, fontconfig, nasm, jpeg-turbo, giflib, highway, imath, libtiff, little-cms2, openexr, webp, docbook, mpdecimal, readline, sqlite, python@3.12, icu4c, boost, source-highlight, asciidoc, docbook-xsl, flex, doxygen, python@3.11, certifi, sphinx-doc, jpeg-xl, ninja, meson, libsodium, lua, ncurses, berkeley-db@5, gdbm, perl, libyaml, libgit2, z3, swig, llvm, rust, ruby, vim, libvmaf, yasm, aom, libavif, gd, automake, gmp, krb5, libffi, libpq, libzip, oniguruma and tidy-html5
==> Fetching bison
==> Downloading https://ghcr.io/v2/homebrew/core/bison/manifests/3.8.2
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/bison/blobs/sha256:5a79db63b8a1
######################################################################### 100.0%
==> Fetching apr
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/f976811
######################################################################### 100.0%
==> Downloading https://www.apache.org/dyn/closer.lua?path=apr/apr-1.7.4.tar.bz2
==> Downloading from https://dlcdn.apache.org/apr/apr-1.7.4.tar.bz2
######################################################################### 100.0%
==> Fetching ca-certificates
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2024-
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:ca
######################################################################### 100.0%
==> Fetching openssl@3

 

중략.....

 

freetds 에서 오류가 발생하고 중단된다.

 

==> Fetching freetds
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/f976811
######################################################################### 100.0%
Error: php@7.4: Failed to download resource "freetds"
Download failed: Homebrew-installed `curl` is not installed for: https://www.freetds.org/files/stable/freetds-1.4.17.tar.bz2

 

 

4. freetds만 단독으로 설치한다.

 

ellord@ellords-Mac-mini apache2 % brew install freetds
==> Downloading https://formulae.brew.sh/api/formula.jws.json

==> Downloading https://formulae.brew.sh/api/cask.jws.json

Warning: You are using macOS 10.15.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.
==> Fetching dependencies for freetds: cmake, brotli, libunistring, gettext, pkg-config, libidn2, libnghttp2, ca-certificates, openssl@3, libssh2, openldap, rtmpdump, lz4, xz, zstd, curl, m4, libtool and unixodbc
==> Fetching cmake


중략...


==> Fetching freetds
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/f976811
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/988e6f64f1bac30e7da0b09a7fad2fe1282ef7c488041caf513b70aa92cc1e51--freetds.rb
==> Downloading https://www.freetds.org/files/stable/freetds-1.4.17.tar.bz2
######################################################################### 100.0%

중략...


==> Installing freetds
==> ./configure --with-tdsver=7.3 --mandir=/usr/local/Cellar/freetds/1.4.17/shar
==> make
==> make install
🍺  /usr/local/Cellar/freetds/1.4.17: 1,421 files, 15.8MB, built in 1 minute 14 seconds
==> Running `brew cleanup freetds`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

 

 

5. freetds가 성공적으로 설치되었다면 php설치를 다시 시도한다.

 

ellord@ellords-Mac-mini apache2 % brew install php@7.4
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
######################################################################### 100.0%
Warning: You are using macOS 10.15.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

Warning: shivammathur/php/php@7.4 has been deprecated because it is a versioned formula!
==> Fetching dependencies for shivammathur/php/php@7.4: bison, apr, apr-util, pcre2, httpd, re2c, argon2, aspell, autoconf, libpng, freetype, fontconfig, nasm, jpeg-turbo, giflib, highway, imath, libtiff, little-cms2, openexr, webp, docbook, mpdecimal, readline, sqlite, python@3.12, icu4c, boost, source-highlight, asciidoc, docbook-xsl, flex, doxygen, python@3.11, certifi, sphinx-doc, jpeg-xl, ninja, meson, libsodium, lua, ncurses, berkeley-db@5, gdbm, perl, libyaml, libgit2, z3, swig, llvm, rust, ruby, vim, libvmaf, yasm, aom, libavif, gd, automake, gmp, krb5, libffi, libpq, libzip, oniguruma and tidy-html5
==> Fetching bison
==> Downloading https://ghcr.io/v2/homebrew/core/bison/manifests/3.8.2
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/0a84b14c20dfba4609542ea4b14a4eb93d369f7f83f373b568017fc7d76b6505--bison-3.8.2.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/bison/blobs/sha256:5a79db63b8a1
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/9a12eeb4d6604ad355576c4b4a846430c9776468d2bc17baf43529a672999c8a--bison--3.8.2.catalina.bottle.tar.gz


중략...

 

 

6. jpeg-xl 에서 에러가 난다.

 

==> Installing shivammathur/php/php@7.4 dependency: jpeg-xl
==> cmake -S . -B build -DJPEGXL_FORCE_SYSTEM_BROTLI=ON -DJPEGXL_FORCE_SYSTEM_LC
==> cmake --build build
Last 15 lines from /Users/ellord/Library/Logs/Homebrew/jpeg-xl/02.cmake:
static JXL_MAYBE_UNUSED constexpr size_t CoeffOrderOffset(size_t order,
                                         ^
/tmp/jpeg-xl-20240614-58935-ac3kz2/libjxl-0.10.2/lib/jxl/coeff_order.h:35:10: note: non-constexpr function 'operator[]' cannot be used in a constant expression
  return kCoeffOrderOffset[3 * order + c] * kDCTBlockSize;
         ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/array:195:21: note: declared here
    const_reference operator[](size_type __n) const _NOEXCEPT {return __elems_[__n];}
                    ^
1 error generated.
make[2]: *** [lib/CMakeFiles/jxl_extras_core-obj.dir/extras/enc/pnm.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [lib/CMakeFiles/jxl_extras_core-obj.dir/all] Error 2
make[1]: *** [lib/CMakeFiles/jxl_enc-obj.dir/all] Error 2
make: *** [all] Error 2


Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!


Error: You are using macOS 10.15.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

Do not report this issue: you are running in an unsupported configuration.

 

7. jpeg-xl 만 단독으로 설치해도 동일하게 에러가 난다.

 

ellord@ellords-Mac-mini apache2 % brew install jpeg-xl
==> Downloading https://formulae.brew.sh/api/cask.jws.json
######################################################################### 100.0%
Warning: You are using macOS 10.15.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

==> Fetching jpeg-xl
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/83aaf1a
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/ebe161ddae48ea91eeb746886ca33278ea3905d90426718d0f3862788c101079--jpeg-xl.rb
==> Cloning https://github.com/webmproject/sjpeg.git
Updating /Users/ellord/Library/Caches/Homebrew/jpeg-xl--sjpeg--git
origin/HEAD set to main
refs/remotes/origin/main
==> Checking out revision e5ab13008bb214deb66d5f3e17ca2f8dbff150bf
HEAD is now at e5ab130 Merge pull request #119 from szabadka/master
HEAD is now at e5ab130 Merge pull request #119 from szabadka/master
==> Downloading https://github.com/libjxl/libjxl/archive/refs/tags/v0.10.2.tar.g
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/1d8fc35d3c7e4ab3922e18bba9e7ce42a291b9a6605d65cfbb6ce93f064c2f1a--libjxl-0.10.2.tar.gz
==> cmake -S . -B build -DJPEGXL_FORCE_SYSTEM_BROTLI=ON -DJPEGXL_FORCE_SYSTEM_LC
==> cmake --build build
Last 15 lines from /Users/ellord/Library/Logs/Homebrew/jpeg-xl/02.cmake:
/tmp/jpeg-xl-20240614-62458-i08g20/libjxl-0.10.2/lib/jxl/coeff_order.h:33:42: error: constexpr function never produces a constant expression [-Winvalid-constexpr]
static JXL_MAYBE_UNUSED constexpr size_t CoeffOrderOffset(size_t order,
                                         ^
/tmp/jpeg-xl-20240614-62458-i08g20/libjxl-0.10.2/lib/jxl/coeff_order.h:35:10: note: non-constexpr function 'operator[]' cannot be used in a constant expression
  return kCoeffOrderOffset[3 * order + c] * kDCTBlockSize;
         ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/array:195:21: note: declared here
    const_reference operator[](size_type __n) const _NOEXCEPT {return __elems_[__n];}
                    ^
1 error generated.
make[2]: *** [lib/CMakeFiles/jxl_extras_core-obj.dir/extras/enc/pnm.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/jxl_extras_core-obj.dir/all] Error 2
make[1]: *** [lib/CMakeFiles/jxl_enc-obj.dir/all] Error 2
make: *** [all] Error 2


Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!


Error: You are using macOS 10.15.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

Do not report this issue: you are running in an unsupported configuration.

 

8. brew 컴파일러를 gcc로 변경하기 위해 gcc를 설치한다.

 

ellord@ellords-Mac-mini apache2 % brew install gcc
Warning: You are using macOS 10.15.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

==> Fetching dependencies for gcc: automake, gmp, isl, mpfr and libmpc
==> Fetching automake
==> Downloading https://ghcr.io/v2/homebrew/core/automake/manifests/1.16.5
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/6863d3ffa73c5a5cbf1f1ea9e47b60784d09b232ac9e56149c1b931d9ec44d8b--automake-1.16.5.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/automake/blobs/sha256:ae77a247a
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/25e6690671ae9c3741dac14ff17e9904701143701ad52a24789d60a14dce5077--automake--1.16.5.catalina.bottle.tar.gz
==> Fetching gmp
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/83aaf1a
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/3ad370e9716d85d6631851075c486bcadbc523ffbf52552d432a0a81bbe7ed89--gmp.rb
==> Downloading https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/7d7db5bdc2f588d5f7a444f8fed18037d46e3df7ecabe45a7547939eb2c63bd7--gmp-6.3.0.tar.xz
==> Fetching isl
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/83aaf1a
######################################################################### 100.0%
==> Downloading https://libisl.sourceforge.io/isl-0.26.tar.xz
######################################################################### 100.0%
==> Fetching mpfr
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/83aaf1a
######################################################################### 100.0%
==> Downloading https://ftp.gnu.org/gnu/mpfr/mpfr-4.2.1.tar.xz
######################################################################### 100.0%
==> Fetching libmpc
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/83aaf1a
######################################################################### 100.0%
==> Downloading https://ftp.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz
######################################################################### 100.0%
==> Fetching gcc
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/83aaf1a
######################################################################### 100.0%
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/82b5c
######################################################################### 100.0%
==> Downloading https://github.com/iains/gcc-14-branch/commit/75ff8c390327ac693f
######################################################################### 100.0%
==> Downloading https://ftp.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz
######################################################################### 100.0%
==> Installing dependencies for gcc: automake, gmp, isl, mpfr and libmpc
==> Installing gcc dependency: automake
==> Downloading https://ghcr.io/v2/homebrew/core/automake/manifests/1.16.5
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/6863d3ffa73c5a5cbf1f1ea9e47b60784d09b232ac9e56149c1b931d9ec44d8b--automake-1.16.5.bottle_manifest.json
==> Pouring automake--1.16.5.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/automake/1.16.5: 132 files, 3.5MB
==> Installing gcc dependency: gmp
==> autoreconf -i -s
==> ./configure --enable-cxx --with-pic --build=nehalem-apple-darwin19
==> make
==> make check
==> make install
🍺  /usr/local/Cellar/gmp/6.3.0: 22 files, 3.3MB, built in 4 minutes
==> Installing gcc dependency: isl
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################### 100.0%
==> ./configure --disable-silent-rules --with-gmp=system --with-gmp-prefix=/usr/
==> make
==> make install
🍺  /usr/local/Cellar/isl/0.26: 74 files, 7.6MB, built in 52 seconds
==> Installing gcc dependency: mpfr
==> ./configure --disable-silent-rules
==> make
==> make check
^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A==> make install
🍺  /usr/local/Cellar/mpfr/4.2.1: 31 files, 3.1MB, built in 6 minutes 34 seconds
==> Installing gcc dependency: libmpc
==> ./configure --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr
==> make
^[[A==> make check
^[[A^[[A^[[A==> make install
🍺  /usr/local/Cellar/libmpc/1.3.1: 13 files, 498.8KB, built in 1 minute 6 seconds
==> Installing gcc
==> Downloading https://formulae.brew.sh/api/formula.jws.json

==> Patching
==> Applying gcc-14.1.0.diff
patching file configure
patching file configure.ac
patching file gcc/builtins.cc
patching file gcc/c-family/c-attribs.cc
patching file gcc/c-family/c-common.h
patching file gcc/c-family/c-lex.cc
patching file gcc/c-family/c-opts.cc
patching file gcc/c-family/c-pragma.h
patching file gcc/c/c-parser.cc
patching file gcc/calls.cc
patching file gcc/calls.h
patching file gcc/common.opt
patching file gcc/common/config/aarch64/aarch64-common.cc
patching file gcc/config.gcc
patching file gcc/config/aarch64/aarch64-builtins.cc
patching file gcc/config/aarch64/aarch64-c.cc
patching file gcc/config/aarch64/aarch64-cores.def
patching file gcc/config/aarch64/aarch64-protos.h
patching file gcc/config/aarch64/aarch64-tune.md
patching file gcc/config/aarch64/aarch64.cc
patching file gcc/config/aarch64/aarch64.h
patching file gcc/config/aarch64/aarch64.md
patching file gcc/config/aarch64/aarch64.opt
patching file gcc/config/aarch64/constraints.md
patching file gcc/config/aarch64/darwin.h
patching file gcc/config/aarch64/darwinpcs.md
patching file gcc/config/aarch64/driver-aarch64.cc
patching file gcc/config/aarch64/predicates.md
patching file gcc/config/aarch64/t-aarch64-darwin
patching file gcc/config/darwin-driver.cc
patching file gcc/config/darwin-protos.h
patching file gcc/config/darwin.cc
patching file gcc/config/darwin.h
patching file gcc/config/darwin.opt
patching file gcc/configure
patching file gcc/configure.ac
patching file gcc/cp/decl2.cc
patching file gcc/cp/parser.cc
patching file gcc/cumulative-args.h
patching file gcc/doc/invoke.texi
patching file gcc/doc/tm.texi
patching file gcc/doc/tm.texi.in
patching file gcc/explow.cc
patching file gcc/explow.h
patching file gcc/function.cc
patching file gcc/function.h
patching file gcc/ginclude/stddef.h
patching file gcc/jit/libgccjit.h
patching file gcc/objc/objc-next-runtime-abi-02.cc
patching file gcc/target.def
patching file gcc/target.h
patching file gcc/targhooks.cc
patching file gcc/targhooks.h
patching file gcc/testsuite/g++.dg/cpp0x/pr106435-b.cc
patching file gcc/testsuite/g++.dg/cpp0x/pr106435.C
patching file gcc/testsuite/g++.dg/cpp0x/pr106435.h
patching file gcc/testsuite/g++.target/aarch64/float128-darwin-1.C
patching file gcc/testsuite/gcc.target/aarch64/darwin/float128-01.c
patching file gcc/testsuite/gcc.target/aarch64/darwin/float128-02.c
patching file gcc/testsuite/gcc.target/aarch64/sme/aarch64-sme.exp
patching file libgcc/config.host
patching file libgcc/config/aarch64/__arm_sme_state.S
patching file libgcc/config/aarch64/__arm_tpidr2_restore.S
patching file libgcc/config/aarch64/__arm_tpidr2_save.S
patching file libgcc/config/aarch64/__arm_za_disable.S
patching file libgcc/config/aarch64/aarch64-asm.h
patching file libgcc/config/aarch64/lse.S
patching file libgcc/config/aarch64/sfp-machine.h
patching file libgcc/config/aarch64/t-darwin
patching file libgcc/config/t-darwin-min-11
patching file libitm/config/aarch64/sjlj.S
patching file libitm/configure.tgt
==> Applying 75ff8c390327ac693f6a1c40510bc0d35d7a1e22.patch
patching file fixincludes/fixincl.x
patching file fixincludes/inclhack.def
==> ../configure --prefix=/usr/local/opt/gcc --libdir=/usr/local/opt/gcc/lib/gcc
==> make
^[[A^[[A==> make install DESTDIR=/private/tmp/gcc-20240614-10704-wp0i3t/gcc-14.1.0/build
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################### 100.0%
🍺  /usr/local/Cellar/gcc/14.1.0_1: 1,679 files, 466.2MB, built in 81 minutes 2 seconds
==> Running `brew cleanup gcc`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /Users/ellord/Library/Caches/Homebrew/gcc--14.1.0.tar.xz... (88.0MB)
Removing: /Users/ellord/Library/Caches/Homebrew/gcc--patch--13a7ef21fafa39b268e63c3aaed6a78a1d744176a08ffb8d0fbf2f0083e0c850.patch... (8.8KB)
Removing: /Users/ellord/Library/Caches/Homebrew/gcc--patch--1529cff128792fe197ede301a81b02036c8168cb0338df21e4bc7aafe755305a.diff... (195.7KB)

 

 

9. gcc14버전이 설치되었으므로 gcc14컴파일러를 지정하여 jpeg-xl를 설치한다.

 

brew install jpeg-xl --force --cc gcc-14

 

[ellord@ellords-Mac-mini ~ % brew install jpeg-xl --force --cc gcc-14
Warning: You passed `--cc=gcc-14`.
It is expected behaviour that some formulae will fail to build in this unsupported configuration.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

Warning: You are using macOS 10.15.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

==> Fetching jpeg-xl
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/39c4d9b
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/afef7bfd8306993d976a0a1195a5b3e0de6a050d594b195785fa63a0c3ede6a0--jpeg-xl.rb
==> Cloning https://github.com/webmproject/sjpeg.git
Updating /Users/ellord/Library/Caches/Homebrew/jpeg-xl--sjpeg--git
origin/HEAD set to main
refs/remotes/origin/main
==> Checking out revision e5ab13008bb214deb66d5f3e17ca2f8dbff150bf
HEAD is now at e5ab130 Merge pull request #119 from szabadka/master
HEAD is now at e5ab130 Merge pull request #119 from szabadka/master
==> Downloading https://github.com/libjxl/libjxl/archive/refs/tags/v0.10.2.tar.g
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/1d8fc35d3c7e4ab3922e18bba9e7ce42a291b9a6605d65cfbb6ce93f064c2f1a--libjxl-0.10.2.tar.gz
==> cmake -S . -B build -DJPEGXL_FORCE_SYSTEM_BROTLI=ON -DJPEGXL_FORCE_SYSTEM_LC
==> cmake --build build
==> cmake --build build --target install
🍺  /usr/local/Cellar/jpeg-xl/0.10.2: 63 files, 40MB, built in 3 minutes 23 seconds
==> Running `brew cleanup jpeg-xl`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

 

 

10. php7.4 설치를 다시 시도한다.

 

brew install php@7.4

 

 

ellord@ellords-Mac-mini apache2 % brew install php@7.4
==> Fetching dependencies for shivammathur/php/php@7.4: ninja, meson, libsodium, lua, ncurses, berkeley-db@5, gdbm, perl, libyaml, libgit2, z3, swig, llvm, rust, ruby, vim, libvmaf, yasm, aom, libavif, gd, krb5, libffi, libpq, libzip, oniguruma and tidy-html5
==> Fetching ninja
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/39c4d9b
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/4fd39b075d91721325be9bd6ed0b557d2f82f3289d844586dfe0a1f17bfd1241--ninja.rb
==> Downloading https://github.com/ninja-build/ninja/archive/refs/tags/v1.12.1.t
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/ec96c4c3291b5a225a471868d1613e26b45f64261694186fc564d5aefd1a309a--ninja-1.12.1.tar.gz
==> Fetching meson
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/39c4d9b
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/e0c5745d36874d117ee5ad1bd74b4517fc665e0dc673c31da6e46e98d33824b5--meson.rb
==> Downloading https://github.com/mesonbuild/meson/releases/download/1.4.1/meso
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/ca87231f695fb06a5331e2d44a6fd404a67ff0c3e799651607a40c7310d9298c--meson-1.4.1.tar.gz
==> Fetching libsodium


중략...

 

 

 dependency 가 많이 줄었다.

 

더이상의 오류가 없이 성공적으로 설치가 된다.

단, llvm, rust 에서 굉장히 많은 시간이 소요되므로 인내심을 가지고 기다린다.

 

llvm : 450 분 (7시간 30분)

rust : 124 분 (2시간 4분)

 

 

==> Installing shivammathur/php/php@7.4 dependency: llvm
==> cmake -G Ninja .. -DLLVM_ENABLE_PROJECTS=clang;clang-tools-extra;lld;mlir;po
==> cmake --build .
==> cmake --build . --target install
==> /usr/libexec/PlistBuddy -c Add:CFBundleIdentifier string org.llvm.18.1.7 Inf
==> /usr/libexec/PlistBuddy -c Add:CompatibilityVersion integer 2 Info.plist
🍺  /usr/local/Cellar/llvm/18.1.7: 7,722 files, 1.7GB, built in 450 minutes 49 seconds
==> Installing shivammathur/php/php@7.4 dependency: rust
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################### 100.0%
==> ./install.sh --prefix=/private/tmp/rust-20240615-53463-sv2uoa/rustc-1.78.0-s
==> ./configure --sysconfdir=/usr/local/etc --tools=analysis,cargo,clippy,rustdo
==> make
==> make install
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################### 100.0%
🍺  /usr/local/Cellar/rust/1.78.0: 3,319 files, 287.7MB, built in 124 minutes 29 seconds

 

 

마지막 php7.4설치부분

 

==> Installing shivammathur/php/php@7.4
==> Patching
==> ./buildconf --force
==> ./configure --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/7
==> make
==> make install
==> /usr/local/Cellar/php@7.4/7.4.33_6/bin/pear config-set php_ini /usr/local/etc/php/
==> /usr/local/Cellar/php@7.4/7.4.33_6/bin/pear config-set php_dir /usr/local/share/pe
==> /usr/local/Cellar/php@7.4/7.4.33_6/bin/pear config-set doc_dir /usr/local/share/pe
==> /usr/local/Cellar/php@7.4/7.4.33_6/bin/pear config-set ext_dir /usr/local/lib/php/
==> /usr/local/Cellar/php@7.4/7.4.33_6/bin/pear config-set bin_dir /usr/local/opt/php@
==> /usr/local/Cellar/php@7.4/7.4.33_6/bin/pear config-set data_dir /usr/local/share/p
==> /usr/local/Cellar/php@7.4/7.4.33_6/bin/pear config-set cfg_dir /usr/local/share/pe
==> /usr/local/Cellar/php@7.4/7.4.33_6/bin/pear config-set www_dir /usr/local/share/pe
==> /usr/local/Cellar/php@7.4/7.4.33_6/bin/pear config-set man_dir /usr/local/share/ma
==> /usr/local/Cellar/php@7.4/7.4.33_6/bin/pear config-set test_dir /usr/local/share/p
==> /usr/local/Cellar/php@7.4/7.4.33_6/bin/pear config-set php_bin /usr/local/opt/php@
==> /usr/local/Cellar/php@7.4/7.4.33_6/bin/pear update-channels
==> Caveats
To enable PHP in Apache add the following to httpd.conf and restart Apache:
    LoadModule php7_module /usr/local/opt/php@7.4/lib/httpd/modules/libphp7.so

    <FilesMatch \.php$>
        SetHandler application/x-httpd-php
    </FilesMatch>

Finally, check DirectoryIndex includes index.php
    DirectoryIndex index.php index.html

The php.ini and php-fpm.ini file can be found in:
    /usr/local/etc/php/7.4/

php@7.4 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have php@7.4 first in your PATH, run:
  echo 'export PATH="/usr/local/opt/php@7.4/bin:$PATH"' >> ~/.zshrc
  echo 'export PATH="/usr/local/opt/php@7.4/sbin:$PATH"' >> ~/.zshrc

For compilers to find php@7.4 you may need to set:
  export LDFLAGS="-L/usr/local/opt/php@7.4/lib"
  export CPPFLAGS="-I/usr/local/opt/php@7.4/include"

To start shivammathur/php/php@7.4 now and restart at login:
  brew services start shivammathur/php/php@7.4
Or, if you don't want/need a background service you can just run:
  /usr/local/opt/php@7.4/sbin/php-fpm --nodaemonize
==> Summary
🍺  /usr/local/Cellar/php@7.4/7.4.33_6: 494 files, 72.4MB, built in 7 minutes 22 seconds
==> Running `brew cleanup php@7.4`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /Users/ellord/Library/Caches/Homebrew/php@7.4--7.4.33.tar.gz... (14.2MB)
==> Caveats
==> php@7.4
To enable PHP in Apache add the following to httpd.conf and restart Apache:
    LoadModule php7_module /usr/local/opt/php@7.4/lib/httpd/modules/libphp7.so

    <FilesMatch \.php$>
        SetHandler application/x-httpd-php
    </FilesMatch>

Finally, check DirectoryIndex includes index.php
    DirectoryIndex index.php index.html

The php.ini and php-fpm.ini file can be found in:
    /usr/local/etc/php/7.4/

php@7.4 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have php@7.4 first in your PATH, run:
  echo 'export PATH="/usr/local/opt/php@7.4/bin:$PATH"' >> ~/.zshrc
  echo 'export PATH="/usr/local/opt/php@7.4/sbin:$PATH"' >> ~/.zshrc

For compilers to find php@7.4 you may need to set:
  export LDFLAGS="-L/usr/local/opt/php@7.4/lib"
  export CPPFLAGS="-I/usr/local/opt/php@7.4/include"

To start shivammathur/php/php@7.4 now and restart at login:
  brew services start shivammathur/php/php@7.4
Or, if you don't want/need a background service you can just run:
  /usr/local/opt/php@7.4/sbin/php-fpm --nodaemonize

 

 

11. php버전을 스위칭한다.

 

ellord@ellords-Mac-mini apache2 % brew services start php@7.4
ellord@ellords-Mac-mini apache2 % export PATH="/usr/local/opt/php@7.4/bin:$PATH"
ellord@ellords-Mac-mini apache2 % export PATH="/usr/local/opt/php@7.4/sbin:$PATH"
[ellord@ellords-Mac-mini apache2 % php -v
PHP 7.3.11 (cli) (built: Jun  5 2020 23:50:40) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
ellord@ellords-Mac-mini apache2 % brew services start php
Error: Formula `php` is not installed.
ellord@ellords-Mac-mini apache2 % brew services start php@7.4
==> Successfully started `php@7.4` (label: homebrew.mxcl.php@7.4)
ellord@ellords-Mac-mini apache2 % php -v
PHP 7.3.11 (cli) (built: Jun  5 2020 23:50:40) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
ellord@ellords-Mac-mini apache2 % export PATH="/usr/local/opt/php@7.4/bin:$PATH"
ellord@ellords-Mac-mini apache2 % export PATH="/usr/local/opt/php@7.4/sbin:$PATH"
ellord@ellords-Mac-mini apache2 % php -v
PHP 7.4.33 (cli) (built: Jun 14 2024 22:06:59) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies
ellord@ellords-Mac-mini apache2 %

 

터미널을 새로 열어 버전을 확인해 본다.

 

Last login: Sat Jun 15 07:38:35 on ttys000
ellord@ellords-Mac-mini ~ % php -v
PHP 7.4.33 (cli) (built: Jun 14 2024 22:06:59) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies
ellord@ellords-Mac-mini ~ %

 

 

 설치완료.

 

 

 

 

 

 

 

 

 

 

 

 

'Mac' 카테고리의 다른 글

macos Catalina macports, libzip 설치  (0) 2025.04.06
OSX Mojave freetype install error  (0) 2023.03.18
Change OSX ssh port 맥OS ssh 포트 변경  (0) 2022.11.04
OSX mariadb 설치  (0) 2022.04.21
osx apache httpd는 어디에 설치?  (0) 2022.04.21
블로그 이미지

엘로드넷

,

1. homebrew update to enable anonymous aggregate formulae

 

ellords-Mac-book:~ ellord$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password)...
Password:
==> You are using macOS 10.14.
==> We (and Apple) do not provide support for this old version.
This installation may not succeed.
After installation, you will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving any
issues you experience while you are running this old version.

==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew

Press RETURN/ENTER to continue or any other key to abort:
==> /usr/bin/sudo /usr/sbin/chown -R ellord:admin /usr/local/Homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 78, done.
remote: Counting objects: 100% (78/78), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 78 (delta 32), reused 50 (delta 16), pack-reused 0
Unpacking objects: 100% (78/78), done.
From https://github.com/Homebrew/brew
   650f516c5..b3684e55a  master     -> origin/master
HEAD is now at b3684e55a Merge pull request #14997 from ZhongRuoyu/ventura-system-settings
Updated 3 taps (shivammathur/php, homebrew/core, and homebrew/cask).
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
    (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/ellord/.bash_profile
    eval "$(/usr/local/bin/brew shellenv)"
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh

 

 

2. bash change

ellords-Mac-book:~ ellord$ echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile

 

3. install freetype

ellords-Mac-book:~ ellord$ brew install freetype
Warning: You are using macOS 10.14.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

==> Fetching freetype
==> Downloading https://gitlab.freedesktop.org/freetype/freetype/-/commit/2257f9
######################################################################## 100.0%
==> Downloading https://gitlab.freedesktop.org/freetype/freetype/-/commit/d874ff
######################################################################## 100.0%
==> Downloading https://downloads.sourceforge.net/project/freetype/freetype2/2.1
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/34c0ca3c59c0f54b35bf7667b3ef864f2321172ace9cf180c40e81819e46f0f3--freetype-2.13.0.tar.xz
==> Patching
==> Applying 2257f9abf6e12daf7c3e1bfe28fa88de85e45785.diff
patching file include/freetype/internal/compiler-macros.h
==> Applying d874ffa96ccad7dd122cdc369a284d171e221809.diff
patching file include/freetype/internal/compiler-macros.h
==> ./configure --prefix=/usr/local/Cellar/freetype/2.13.0_1 --enable-freetype-c
==> make
==> make install
🍺  /usr/local/Cellar/freetype/2.13.0_1: 67 files, 2.4MB, built in 26 seconds
==> Running `brew cleanup freetype`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

 

 

 

 

 

 

 

 

 

'Mac' 카테고리의 다른 글

macos Catalina macports, libzip 설치  (0) 2025.04.06
macOs 10.15.7 catalina php7.4 upgrade 성공기  (0) 2024.06.15
Change OSX ssh port 맥OS ssh 포트 변경  (0) 2022.11.04
OSX mariadb 설치  (0) 2022.04.21
osx apache httpd는 어디에 설치?  (0) 2022.04.21
블로그 이미지

엘로드넷

,

ssh의 기본 포트는 22이다.

 

OSX에서 ssh 포트를 변경하는 방법 

 

1. /etc/services에서 변경

 

vi /etc/services

ssh              22/udp     # SSH Remote Login Protocol
ssh              22/tcp     # SSH Remote Login Protocol

22를 적당한 포트로 변경하고 저장한다.

 

1 ~ 65535 중의 하나로 변경가능하지만 다른 곳에서 사용중인 것은 피한다.

 

 

2. ssh데몬 재시작

 

아래와 같이 데몬을 내렸다가 올리는 방식으로 처리한다.

 

sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist 
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist

 

변경된 포트로 접속하는 방법

 

ssh 192.168.0.100 -p 변경된포트 -l 사용자명

'Mac' 카테고리의 다른 글

macOs 10.15.7 catalina php7.4 upgrade 성공기  (0) 2024.06.15
OSX Mojave freetype install error  (0) 2023.03.18
OSX mariadb 설치  (0) 2022.04.21
osx apache httpd는 어디에 설치?  (0) 2022.04.21
osx 원격제어설정  (0) 2022.04.15
블로그 이미지

엘로드넷

,

OSX mariadb 설치

Mac 2022. 4. 21. 15:03

 

1. 설치

$ brew install mariadb

 

2. 서비스시작

$ brew services start mariadb

 

3. root비전 설정

$ sudo mariadb-secure-installation

 

Chan-ui-Mac-mini:www ds1ttc$ sudo mariadb-secure-installation
Password:


NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
haven't set the root password yet, you should just press enter here.

Enter current password for root (enter for none): 
OK, successfully used password, moving on...

Setting the root password or using the unix_socket ensures that nobody
can log into the MariaDB root user without the proper authorisation.

You already have your root account protected, so you can safely answer 'n'.

Switch to unix_socket authentication [Y/n] n  
 ... skipping.

You already have your root account protected, so you can safely answer 'n'.

Change the root password? [Y/n] y
New password: 
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
 ... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!
Chan-ui-Mac-mini:www ds1ttc$

 

 

4. mariadb 서버에 접속해 보자

$ mysql -u root -p mysql

Chan-ui-Mac-mini:www ds1ttc$ mysql -u root -p mysql
Enter password: 
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 11
Server version: 10.7.3-MariaDB Homebrew

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [mysql]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
4 rows in set (0.001 sec)

MariaDB [mysql]>

최신 버전이 잘 설치되었다.

 

'Mac' 카테고리의 다른 글

OSX Mojave freetype install error  (0) 2023.03.18
Change OSX ssh port 맥OS ssh 포트 변경  (0) 2022.11.04
osx apache httpd는 어디에 설치?  (0) 2022.04.21
osx 원격제어설정  (0) 2022.04.15
OSX ssh 포트 변경  (0) 2022.04.14
블로그 이미지

엘로드넷

,

1. 설치방법 

 

$ brew install httpd

 

 

2. httpd.conf 위치는 ?

 

/usr/local/etc/httpd

 

 

 

3. 홈 디렉토리는 ?

 

/usr/local/var/www

 

블로그 이미지

엘로드넷

,

osx 원격제어설정

Mac 2022. 4. 15. 13:31

맥에는 vnc가 기본적으로 설치되어 있다.

vnc가 사용하는 포트는 5900이다.

 

원격제어 remote 맥 설정 : 

 

시스템 환경설정 > 공유 > 화면공유 체크

 

 

 

로컬맥에서 remote 접속 : 

 

파인더 상에서 Command + K 

 

끝.

블로그 이미지

엘로드넷

,

OSX ssh 포트 변경

Mac 2022. 4. 14. 16:32

1.  포트변경

$ sudo vi /etc/ssh/sshd_config

13째 줄에 주석을 제거하고 원하는 포트로 변경한다.

 

변경 전 : 

#Port 22

 

변경 후 : 

Port 12345

 

 

$ sudo vi /etc/services

77, 78라인을 찾아서 아래와 같이 변경한다.

 

변경 전 : 

ssh         22/udp

ssh         22/tcp

 

변경 후 

ssh.         원하는 포트/udp

ssh.         원하는 포트/tcp

 

 

 

 

2. 데몬 재시작

아래 명령어 차례로 수행

 

sudo launchctl unload /System/Llibrary/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist

 

블로그 이미지

엘로드넷

,

eclipse.ini파일을 열어서 -vm 바로 아래줄을 주석처리하고 아래와 같이 jdk버전을 변경

 

/Applications/Eclipse/Contents/Eclipse>eclipse.ini

 

 

-vm
/Library/Java/JavaVirtualMachines/jdk-11.0.13.jdk/Contents/MacOS/libjli.dylib
#../Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.2.v20220201-1208/jre/lib/libjli.dylib

'Mac' 카테고리의 다른 글

osx 원격제어설정  (0) 2022.04.15
OSX ssh 포트 변경  (0) 2022.04.14
OSX .DS_Store 파일 생성 안되게 하기  (0) 2022.04.13
OSX .DS_Store 파일 삭제  (0) 2022.04.13
OSX SVN Server 세팅  (0) 2022.04.12
블로그 이미지

엘로드넷

,

생성 안되게 하기

$ defaults write com.apple.desktopservices DSDontWriteNetworkStores true

 

 

생성 되게 하기

 

$ defaults write com.apple.desktopservices DSDontWriteNetworkStores false

 

블로그 이미지

엘로드넷

,