$ mdir -p /opt/gcc
$ curl -fsSL https://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-13.2.0/gcc-13.2.0.tar.gz | tar xzf - -C /opt/gcc
$ cd /opt/gcc/gcc-13.2.0
# prerequisites
gcc-13.2.0 $ grep base_url= contrib/download_prerequisites
base_url='http://gcc.gnu.org/pub/gcc/infrastructure/'
gcc-13.2.0 $ ./contrib/download_prerequisites
# config
gcc-13.2.0 $ mkdir ../objdir && cd $_
objdir $ ../gcc-13.2.0/configure --disable-multilib
# make
objdir $ NPROC="$(nproc)"
objdir $ tmux # it will take very long time to build, better using tmux to avoid interrupt by ssh session down
objdir $ make -j${NPROC} [ | tee make.log ]
# install
objdir $ sudo make install
$ gcc --version
gcc (GCC) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++ --version
g++ (GCC) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ c++ --version
c++ (GCC) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
info-zip
[!TIP|label:references]
src:
mac:
beta:
references:
brew install
[!NOTE|label:references]
$ brew install zip [unzip]
$ brew install zip -v --debug
...
==> Downloading https://ghcr.io/v2/homebrew/core/zip/manifests/3.0-2
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.4.11-27-g9783ab0\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 14.7.2\)\ curl/8.7.1 --header Accept-Language:\ en --fail --retry 3 --header Accept:\ application/vnd.oci.image.index.v1+json --header Authorization:\ Bearer\ QQ== --remote-time --output /Users/marslo/Library/Caches/Homebrew/downloads/794b38c4c17afd41abe76b9b8dc73cabd3543bdb3816b4acca62ff0132aa1225--zip-3.0-2.bottle_manifest.json.incomplete --location https://ghcr.io/v2/homebrew/core/zip/manifests/3.0-2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11876 100 11876 0 0 26371 0 --:--:-- --:--:-- --:--:-- 26391
==> Fetching zip
==> Downloading https://ghcr.io/v2/homebrew/core/zip/blobs/sha256:99265457598a09b6312520471980b7b8429ebfef5be40d3e00a0980544ff12c2
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.4.11-27-g9783ab0\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 14.7.2\)\ curl/8.7.1 --header Accept-Language:\ en --fail --retry 3 --header Authorization:\ Bearer\ QQ== --remote-time --output /Users/marslo/Library/Caches/Homebrew/downloads/ebd73b309783778b2985d2b1cec6aa2ba756923db8dd48e300e04d6587ec9ef8--zip--3.0.arm64_sonoma.bottle.2.tar.gz.incomplete --location https://ghcr.io/v2/homebrew/core/zip/blobs/sha256:99265457598a09b6312520471980b7b8429ebfef5be40d3e00a0980544ff12c2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 307k 100 307k 0 0 407k 0 --:--:-- --:--:-- --:--:-- 870k
==> Verifying checksum for 'ebd73b309783778b2985d2b1cec6aa2ba756923db8dd48e300e04d6587ec9ef8--zip--3.0.arm64_sonoma.bottle.2.tar.gz'
==> Verifying attestation for zip
/usr/bin/env GH_TOKEN=****** GH_HOST=github.com /opt/homebrew/bin/gh attestation verify /Users/marslo/Library/Caches/Homebrew/downloads/ebd73b309783778b2985d2b1cec6aa2ba756923db8dd48e300e04d6587ec9ef8--zip--3.0.arm64_sonoma.bottle.2.tar.gz --repo Homebrew/homebrew-core --format json
==> falling back on backfilled attestation for #<Bottle:0x000000016ba57a00>
/usr/bin/env GH_TOKEN=****** GH_HOST=github.com /opt/homebrew/bin/gh attestation verify /Users/marslo/Library/Caches/Homebrew/downloads/ebd73b309783778b2985d2b1cec6aa2ba756923db8dd48e300e04d6587ec9ef8--zip--3.0.arm64_sonoma.bottle.2.tar.gz --repo trailofbits/homebrew-brew-verify --format json
/opt/homebrew/Library/Homebrew/brew.rb (Formulary::FromAPILoader): loading zip
==> Pouring zip--3.0.arm64_sonoma.bottle.2.tar.gz
/usr/bin/env tar --extract --no-same-owner --file /Users/marslo/Library/Caches/Homebrew/downloads/ebd73b309783778b2985d2b1cec6aa2ba756923db8dd48e300e04d6587ec9ef8--zip--3.0.arm64_sonoma.bottle.2.tar.gz --directory /private/tmp/homebrew-unpack-20241212-61524-9jfahk
mv /private/tmp/homebrew-unpack-20241212-61524-9jfahk/zip /opt/homebrew/Cellar/zip
==> Finishing up
==> Caveats
zip is keg-only, which means it was not symlinked into /opt/homebrew,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
If you need to have zip first in your PATH, run:
echo 'export PATH="/opt/homebrew/opt/zip/bin:$PATH"' >> /Users/marslo/.bash_profile
==> Summary
🦍 /opt/homebrew/Cellar/zip/3.0: 15 files, 871.6KB
...
build from source
[!NOTE|label:references]
zip30
$ curl -fsSL ftp://ftp.info-zip.org/pub/infozip/src/zip30.zip | bsdtar xzf - -C /tmp/
# for zipnote issue -- rename filename in zip
$ curl -o /tmp/zipinfo.patch -fsSL https://gist.githubusercontent.com/marslo/70a3f6728633c49bed865da684378b31/raw/cf402112315ededbfb58c0e17629e9a74708e370/zipinfo.patch
# for macOS
$ curl -o /tmp/xcode15.patch -fsSL https://raw.githubusercontent.com/Homebrew/formula-patches/d2b59930/zip/xcode15.diff
$ cd /tmp/zip30
# apply patches
$ patch -p1 < /tmp/zipinfo.patch
$ patch -p1 < /tmp/xcode15.patch
# or
$ patch -u zipnote.c -i /tmp/zipinfo.patch
$ patch -u unix/Makefile -i /tmp/xcode15.patch
# build
$ make -f unix/Makefile generic
# gcc
$ make -f unix/Makefile generic CC=gcc
# clang
$ make -f unix/Makefile generic CC=clang
# install
$ sudo make -f unix/Makefile install
# or customized BINDIR and MANDIR
$ sudo make -f unix/Makefile BINDIR=/tmp/bin MANDIR=/tmp/man install
zip31d
$ curl -fsSL ftp://ftp.info-zip.org/pub/infozip/beta/zip31d.zip | bsdtar xzf - -C /tmp/
$ curl -fsSL https://gist.githubusercontent.com/marslo/70a3f6728633c49bed865da684378b31/raw/cea315f1ae855c602515b79ddf205cba71fbb2b0/xcode15-zip31d.patch -o /tmp/xcode15-zip31d.patch
$ cd /tmp/zip31d
$ patch -p1 < /tmp/xcode15-zip31d.patch
# or
$ patch -u unix/configure -i /tmp/xcode15-zip31d.patch
# -- build --
$ make -f unix/Makefile generic
# gcc
$ make -f unix/Makefile generic CC=gcc
# clang
$ make -f unix/Makefile generic CC=clang
# install
$ sudo make -f unix/Makefile install
# or customized BINDIR and MANDIR
$ sudo make -f unix/Makefile BINDIR=/tmp/bin MANDIR=/tmp/man install
$ mkdir -p /opt/lua
$ curl -fsSL https://www.lua.org/ftp/lua-5.4.6.tar.gz | tar xzf - -C /opt/lua
$ cd /opt/lua/lua-5.4.6
$ make all test
$ sudo make install
build with .so file
$ patch --ignore-whitespace < <(curl -fsSL https://gist.githubusercontent.com/marslo/767e339e32e0dbc038a3e00e3c8a7cba/raw/01f29ac774a468221082f4d504b013d264435567/Makefile.patch)
$ cd src
$ patch --ignore-whitespace < <(curl -fsSL https://gist.githubusercontent.com/marslo/767e339e32e0dbc038a3e00e3c8a7cba/raw/01f29ac774a468221082f4d504b013d264435567/src.Makefile.patch)
$ make all test && sudo make install
ruby
[!NOTE|label:references:]
rbenv
# debine
$ sudo apt install libffi-dev libyaml-dev
$ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash
# or
$ wget -q https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer -O- | bash
$ ~/.rbenv/bin/rbenv init
$ echo 'export PATH="$PATH:$HOME/.rbenv/bin"' >> ~/.bashrc
$ echo 'eval "$(/home/marslo/.rbenv/bin/rbenv init - bash)"' >> ~/.bashrc
# list latest available versions
$ rbenv install -l
3.0.6
3.1.4
3.2.2
3.3.0
jruby-9.4.5.0
mruby-3.2.0
picoruby-3.0.0
truffleruby-23.1.1
truffleruby+graalvm-23.1.1
# install
$ rbenv install 3.3.0
==> Downloading ruby-3.3.0.tar.gz...
-> curl -q -fL -o ruby-3.3.0.tar.gz https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 21.0M 100 21.0M 0 0 27.6M 0 --:--:-- --:--:-- --:--:-- 27.5M
==> Installing ruby-3.3.0...
# linux
-> ./configure "--prefix=$HOME/.rbenv/versions/3.3.0" --enable-shared --with-ext=openssl,psych,+
# osx
-> ./configure "--prefix=$HOME/.rbenv/versions/3.3.0" --enable-shared --with-readline-dir=/usr/local/opt/readline --with-libyaml-dir=/usr/local/opt/libyaml --with-gmp-dir=/usr/local/opt/gmp --with-ext=openssl,psych,+ --with-openssl-dir=/usr/local/opt/openssl
-> make -j 32
-> make install
==> Installed ruby-3.3.0 to /home/marslo/.rbenv/versions/3.3.0
$ rbenv global 3.3.0
$ npm config set registry https://artifactory.sample.com/artifactory/api/npm/npm-remote/
$ sudo mkdir -p /usr/local/n && sudo chwon -R $(whoami) /usr/local/n
$ sudo n latest
$ npm i -g npm-completion --verbose
upgrade via n
# upgrade nodejs
$ node --version
v12.22.5
$ sudo npm i -g n
$ sudo mkdir -p /usr/local/n && sudo chown -R $(whoami) /usr/local/n
$ sudo n latest
$ which -a node
/usr/local/bin/node
/usr/bin/node
$ node --version
v20.8.1
$ /usr/bin/node --version
v12.22.5
node warnings
[!NOTE|label:references:]
ExperimentalWarning
[!NOTE|label:references:]
to prevent warning as below:
Updating...(node:69018) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)
$ pkg-config --cflags openssl
-I/usr/local/Cellar/openssl@3/3.2.0_1/include
$ pkg-config --variable pc_path pkg-config
/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/11.0
# list all
$ pkg-config --list-all
$ pkg-config --list-all
sqlite3 SQLite - SQL database engine
libgcrypt libgcrypt - General purpose cryptographic library
xcb-xevie XCB Xevie - XCB Xevie Extension
xcb-damage XCB Damage - XCB Damage Extension
pixman-1 Pixman - The pixman library (version 1)
gmodule-export-2.0 GModule - Dynamic module loader for GLib
libevent_pthreads libevent_pthreads - libevent_pthreads adds pthreads-based threading support to libevent
cairo-svg cairo-svg - SVG surface backend for cairo graphics library
recordproto RecordProto - Record extension headers
libmagic libmagic - Magic number recognition library
nettle Nettle - Nettle low-level cryptographic library (symmetric algorithms)
gnutls GnuTLS - Transport Security Layer implementation for the GNU system
fmt fmt - A modern formatting library
libpcreposix libpcreposix - PCREPosix - Posix compatible interface to libpcre
imlib2 imlib2 - Powerful image loading and rendering library
lqr-1 lqr-1 - LiquidRescale seam-carving library
libglog libglog - Google Log (glog) C++ logging framework
jemalloc jemalloc - A general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support.
lua-5.4 Lua - An Extensible Extension Language
cairo-tee cairo-tee - Tee surface backend for cairo graphics library
applewmproto AppleWMProto - AppleWM extension headers
xcb-render XCB Render - XCB Render Extension
ImageMagick-7.Q16HDRI ImageMagick - ImageMagick - convert, edit, and compose images (ABI Q16HDRI)
xwaylandproto XwaylandProto - Xwayland extension headers
libjq libjq - Library to process JSON using a query language
libpcre2-16 libpcre2-16 - PCRE2 - Perl compatible regular expressions C library (2nd API) with 16 bit character support
dri3proto DRI3Proto - DRI3 extension headers
libfolly libfolly - Facebook (Folly) C++ library
dpmsproto DPMSProto - DPMS extension headers
libjxl_threads libjxl_threads - JPEG XL multi-thread runner using std::threads.
cairo-png cairo-png - PNG functions for cairo graphics library
libcurl libcurl - Library to transfer files with ftp, http, etc.
gflags gflags - A commandline flags library that allows for distributed flags.
xcmiscproto XCMiscProto - XCMisc extension headers
libidn Libidn - IETF stringprep, nameprep, punycode, IDNA text processing.
libxslt libxslt - XSLT library version 2.
yaml-0.1 LibYAML - Library to parse and emit YAML
python3-embed Python - Embed Python into an application
xf86vidmodeproto XF86VidModeProto - XF86VidMode extension headers
python-3.10-embed Python - Embed Python into an application
xbuild12 XBuild 12.0 - XBuild/MSBuild 12.0
caca caca - Colour ASCII-Art library
damageproto DamageProto - Damage extension headers
libraw_r libraw - Raw image decoder library (thread-safe)
mono-options Mono.Options - Command Line Parsing Library
odbccr odbccr (unixODBC) - unixODBC Cursor Library
videoproto VideoProto - Video extension headers
cairo-xlib cairo-xlib - Xlib surface backend for cairo graphics library
xcb-xvmc XCB XvMC - XCB XvMC Extension
gnutls-dane GnuTLS-DANE - DANE security library for the GNU system
kbproto KBProto - KB extension headers
expat expat - expat XML parser
gmp GNU MP - GNU Multiple Precision Arithmetic Library
xf86dgaproto XF86DGAProto - XF86DGA extension headers
libpcre2-8 libpcre2-8 - PCRE2 - Perl compatible regular expressions C library (2nd API) with 8 bit character support
libraw libraw - Raw image decoder library (non-thread-safe)
uuid uuid - Universally unique id library
xcb-dri2 XCB DRI2 - XCB DRI2 Extension
xcb-dri3 XCB DRI3 - XCB DRI3 Extension
libpcre2-32 libpcre2-32 - PCRE2 - Perl compatible regular expressions C library (2nd API) with 32 bit character support
randrproto RandrProto - Randr extension headers
apr-util-1 APR Utils - Companion library for APR
libhwy libhwy - Efficient and performance-portable SIMD wrapper
Magick++ Magick++ - Magick++ - C++ API for ImageMagick (ABI Q16HDRI)
MagickWand-7.Q16HDRI MagickWand - MagickWand - C API for ImageMagick (ABI Q16HDRI)
libjxl_cms libjxl_cms - CMS support library for libjxl
x265 x265 - H.265/HEVC video encoder
scrnsaverproto ScrnSaverProto - ScrnSaver extension headers
MagickCore-7.Q16HDRI MagickCore - MagickCore - C API for ImageMagick (ABI Q16HDRI)
libtasn1 libtasn1 - Library for ASN.1 and DER manipulation
dri2proto DRI2Proto - DRI2 extension headers
OpenEXR OpenEXR - OpenEXR image library
harfbuzz-cairo harfbuzz-cairo - HarfBuzz cairo support
system.web.mvc System.Web.Mvc - System.Web.Mvc - ASP.NET MVC
dotnet Standard libraries in a .NET setup - References all the standard .NET libraries for compilation
cairo-ps cairo-ps - PostScript surface backend for cairo graphics library
libheif libheif - HEIF image codec.
p11-kit-1 p11-kit - Library and proxy module for properly loading and sharing PKCS
fixesproto FixesProto - X Fixes extension headers
gpg-error gpg-error - GPG Runtime
libcares c-ares - asynchronous DNS lookup library
python-3.11-embed Python - Embed Python into an application
python3 Python - Build a C extension for Python
xcb-dpms XCB DPMS - XCB DPMS Extension
gmodule-2.0 GModule - Dynamic module loader for GLib
ImageMagick ImageMagick - ImageMagick - convert, edit, and compose images (ABI Q16HDRI)
reactive Reactive Extensions - Reactive Extensions
libvmaf libvmaf - VMAF, Video Multimethod Assessment Fusion
libargon2 libargon2 - Development libraries for libargon2
libutf8proc libutf8proc - UTF8 processing
libturbojpeg libturbojpeg - A SIMD-accelerated JPEG codec that provides the TurboJPEG API
xcb-xinput XCB XInput - XCB XInput Extension (EXPERIMENTAL)
Magick++-7.Q16HDRI Magick++ - Magick++ - C++ API for ImageMagick (ABI Q16HDRI)
Imath Imath - Imath library: vector/matrix and math operations, plus the half type.
xcb-dbe XCB Dbe - XCB Double Buffer Extension
lua Lua - An Extensible Extension Language
xcb-xtest XCB XTEST - XCB XTEST Extension
libsodium libsodium - A modern and easy-to-use crypto library
libedit libedit - command line editor library provides generic line editing, history, and tokenization functions.
xcb-ge XCB GenericEvent - XCB GenericEvent Extension
fontsproto FontsProto - Fonts extension headers
xineramaproto XineramaProto - Xinerama extension headers
guile-3.0 GNU Guile - GNU's Ubiquitous Intelligent Language for Extension
compositeproto CompositeExt - Composite extension headers
xf86bigfontproto XF86BigFontProto - XF86BigFont extension headers
aspnetwebstack AspNetWebStack - References Microsoft ASP.NET Web Stack
xcb-xselinux XCB SELinux - XCB SELinux Extension
libpcre libpcre - PCRE - Perl compatible regular expressions C library with 8 bit character support
ksba ksba - X.509 and CMS support library
libpcre16 libpcre16 - PCRE - Perl compatible regular expressions C library with 16 bit character support
cairo-xcb-shm cairo-xcb-shm - XCB/SHM functions for cairo graphics library
libavif libavif - Library for encoding and decoding .avif files
glproto GLProto - GL extension headers
cairo-pdf cairo-pdf - PDF surface backend for cairo graphics library
libevent_openssl libevent_openssl - libevent_openssl adds openssl-based TLS support to libevent
lcms2 lcms2 - LCMS Color Management Library
dmxproto DMXProto - DMX extension headers
xcb-glx XCB GLX - XCB GLX Extension
aom aom - Alliance for Open Media AV1 codec library v3.8.0.
python-3.12-embed Python - Embed Python into an application
libusb-1.0 libusb-1.0 - C API for USB device access from Linux, Mac OS X, Windows, OpenBSD/NetBSD and Solaris userspace
gthread-2.0 GThread - Thread support for GLib
x11-xcb X11 XCB - X Library XCB interface
xf86driproto XF86DRIProto - XF86DRI extension headers
libssl OpenSSL-libssl - Secure Sockets Layer and cryptography libraries
libpcrecpp libpcrecpp - PCRECPP - C++ wrapper for PCRE
cairo-xcb cairo-xcb - XCB surface backend for cairo graphics library
xcb-screensaver XCB Screensaver - XCB Screensaver Extension
lua5.4 Lua - An Extensible Extension Language
xcb-composite XCB Composite - XCB Composite Extension
odbcinst odbcinst (unixODBC) - unixODBC Configuration Library
cairo-quartz-image cairo-quartz-image - Quartz Image surface backend for cairo graphics library
mpfr mpfr - C library for multiple-precision floating-point computations
MagickWand MagickWand - MagickWand - C API for ImageMagick (ABI Q16HDRI)
libxml-2.0 libXML - libXML library version2.
harfbuzz-subset harfbuzz-subset - HarfBuzz font subsetter
apr-1 APR - The Apache Portable Runtime library
xcb-xv XCB Xv - XCB Xv Extension
xextproto XExtProto - XExt extension headers
cairo-gobject cairo-gobject - cairo-gobject for cairo graphics library
dotnet35 Standard libraries in a .NET setup - References all the standard .NET libraries for compilation (.NET Framework 3.5 compatibility)
gmodule-no-export-2.0 GModule - Dynamic module loader for GLib
libde265 libde265 - H.265/HEVC video decoder.
libbrotlienc libbrotlienc - Brotli encoder library
libcrypto OpenSSL-libcrypto - OpenSSL cryptography library
bdw-gc Boehm-Demers-Weiser Conservative Garbage Collector - A garbage collector for C and C++
x11 X11 - X Library
xcb-res XCB Res - XCB X-Resource Extension
system.web.extensions.design_1.0 System.Web.Extensions.Design - System.Web.Extensions.Design ASP.NET 2.0 add-on
bigreqsproto BigReqsProto - BigReqs extension headers
jasper JasPer - Image Processing/Coding Tool Kit with JPEG-2000 Support
libpcre32 libpcre32 - PCRE - Perl compatible regular expressions C library with 32 bit character support
libjxl libjxl - Loads and saves JPEG XL files
libevent libevent - libevent is an asynchronous notification event loop library
libopenjp2 openjp2 - JPEG2000 library (Part 1 and 2)
gsl GSL - GNU Scientific Library
cairo-quartz-font cairo-quartz-font - Quartz font backend for cairo graphics library
hogweed Hogweed - Nettle low-level cryptographic library (public-key algorithms)
resourceproto ResourceProto - Resource extension headers
libexslt libexslt - EXSLT Extension library
libassuan libassuan - IPC library for the GnuPG components
cecil Mono Internal -- Do not use. - Mono Internal Libraries -- Do not use
bash bash - Bash headers for bash loadable builtins
cairo-fc cairo-fc - Fontconfig font backend for cairo graphics library
z3 z3 - The Z3 Theorem Prover
cairo cairo - Multi-platform 2D graphics library
glib-2.0 GLib - C Utility Library
libevent_core libevent_core - libevent_core
tidy tidy - tidy - HTML syntax checker
cairo-ft cairo-ft - FreeType font backend for cairo graphics library
jbig2dec libjbig2dec - JBIG2 decoder library.
xcb-sync XCB Sync - XCB Sync Extension
xcb-xprint XCB Xprint - XCB Xprint Extension
gio-unix-2.0 GIO unix specific APIs - unix specific headers for glib I/O library
MagickCore MagickCore - MagickCore - C API for ImageMagick (ABI Q16HDRI)
cairo-quartz cairo-quartz - Quartz surface backend for cairo graphics library
system.web.mvc2 System.Web.Mvc2 - System.Web.Mvc - ASP.NET MVC v2
system.web.mvc3 System.Web.Mvc3 - System.Web.Mvc - ASP.NET MVC v3
presentproto PresentProto - Present extension headers
xcb-xfixes XCB XFixes - XCB XFixes Extension
librtmp librtmp - RTMP implementation
libwebpdecoder libwebpdecoder - Library for the WebP graphics format (decode only)
python-3.10 Python - Build a C extension for Python
python-3.11 Python - Build a C extension for Python
monodoc Monodoc - Monodoc - Mono Documentation Tools
python-3.12 Python - Build a C extension for Python
libssh2 libssh2 - Library for SSH-based communication
libnghttp2 libnghttp2 - HTTP/2 C library
xcb-xkb XCB XKB - XCB Keyboard Extension (EXPERIMENTAL)
libpng libpng - Loads and saves PNG files
libpcre2-posix libpcre2-posix - Posix compatible interface to libpcre2-8
libwebpdemux libwebpdemux - Library for parsing the WebP graphics format container
wcf WCF - References WCF for compilation
odbc odbc (unixODBC) - unixODBC Driver Manager library
libhwy-contrib libhwy-contrib - Additions to Highway: dot product, image, math, sort
lzo2 lzo2 - LZO - a real-time data compression library
mono-2 Mono - Mono Runtime
xcb-randr XCB RandR - XCB RandR Extension
IlmBase IlmBase - Base math and exception libraries
cairo-script-interpreter cairo-script-interpreter - script surface backend for cairo graphics library
freetype2 FreeType 2 - A free, high-quality, and portable font engine.
xext Xext - Misc X Extension Library
libjpeg libjpeg - A SIMD-accelerated JPEG codec that provides the libjpeg API
xcb-xf86dri XCB XFree86-DRI - XCB XFree86-DRI Extension
libtiff-4 libtiff - Tag Image File Format (TIFF) library.
xau Xau - X authorization file management library
system.web.extensions_1.0 System.Web.Extensions - System.Web.Extensions ASP.NET 2.0 add-on
xcb-record XCB Record - XCB Record Extension
xcb-present XCB Present - XCB Present Extension
harfbuzz harfbuzz - HarfBuzz text shaping library
libbrotlidec libbrotlidec - Brotli decoder library
openssl OpenSSL - Secure Sockets Layer and cryptography libraries and tools
mono-cairo Mono.Cairo - Cairo bindings for Mono
libuv libuv - multi-platform support library with a focus on asynchronous I/O.
libwebpmux libwebpmux - Library for manipulating the WebP graphics format container
libzstd zstd - fast lossless compression algorithm library
libevent_extra libevent_extra - libevent_extra
cairo-script cairo-script - script surface backend for cairo graphics library
libzip libzip - library for handling zip archives
ncursesw ncursesw - ncurses 5.7 library
libffi libffi - Library supporting Foreign Function Interfaces
xcb-shape XCB Shape - XCB Shape Extension
libqrencode libqrencode - A QR Code encoding library
harfbuzz-icu harfbuzz-icu - HarfBuzz text shaping library ICU integration
pthread-stubs pthread stubs - Meta package for pthread symbols - defaults to heavyweight ones if the C runtime does not provide lightweight ones.
isl isl - isl Library
shared-mime-info shared-mime-info - Freedesktop common MIME database
caca++ caca++ - Colour ASCII-Art library C++ bindings
gdlib gd - GD graphics library
gmpxx GNU MP C++ - GNU Multiple Precision Arithmetic Library (C++ bindings)
liblz4 lz4 - extremely fast lossless compression algorithm library
xrender Xrender - X Render Library
inputproto InputProto - Input extension headers
xproto Xproto - Xproto headers
libgit2 libgit2 - The git library, take 2
xcb-shm XCB Shm - XCB Shm Extension
monosgen-2 Mono - Mono Runtime
oniguruma oniguruma - Regular expression library
libpng16 libpng - Loads and saves PNG files
mono Mono - Mono Runtime
xcb XCB - X-protocol C Binding
graphite2 Graphite2 - Font rendering engine for Complex Scripts
liblzma liblzma - General purpose data compression library
python-3.9-embed Python - Embed Python into an application
mono-lineeditor Mono.Terminal.LineEditor - Terminal text entry editor using System.Console.
libunbound unbound - Library with validating, recursive, and caching DNS resolver
libwebp libwebp - Library for the WebP graphics format
ncurses ncurses - ncurses 5.7 library
jansson Jansson - Library for encoding, decoding and manipulating JSON data
fontconfig Fontconfig - Font configuration and customization library
libsharpyuv libsharpyuv - Library for sharp RGB to YUV conversion
cairo-xlib-xrender cairo-xlib-xrender - Xlib Xrender surface backend for cairo graphics library
harfbuzz-gobject harfbuzz-gobject - HarfBuzz text shaping library GObject integration
libbrotlicommon libbrotlicommon - Brotli common dictionary library
zlib zlib - zlib compression library
python-3.9 Python - Build a C extension for Python
gobject-2.0 GObject - GLib Type, Object, Parameter and Signal Library
libidn2 libidn2 - Library implementing IDNA2008 and TR46
gio-2.0 GIO - glib I/O library
xdmcp Xdmcp - X Display Manager Control Protocol library
xcb-xinerama XCB Xinerama - XCB Xinerama Extension
libiodbc iODBC - iODBC Driver Manager
renderproto RenderProto - Render extension headers
ldconfig
# rebuild ldconfig
$ sudo ldconfig
# show all
$ sudo ldconfig --print-cache
auto completion
[!NOTE|label:references:]
check all commands: compgen -c
bash-completion
[!TIP|label:references:]
local files
$ ls -Altrh /usr/local/etc/ | grep comp
lrwxr-xr-x 1 marslo admin 51 Dec 15 12:19 bash_completion -> ../Cellar/bash-completion/1.3_3/etc/bash_completion
drwxr-xr-x 226 marslo admin 7.1K May 21 17:39 bash_completion.d
brew info bash-completion
==> Caveats
Add the following line to your ~/.bash_profile:
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
# osx
HOMEBREW_PREFIX="$(brew --prefix)"
BASH_COMPLETION="$(brew --prefix bash-completion)/etc/bash_completion" # for bash_completion 1.3_3 BASH_COMPLETION="${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh"
BASH_COMPLETION_DIR="$(brew --prefix)/etc/bash_completion.d" # BASH_COMPLETION="${HOMEBREW_PREFIX}/opt/bash-completion/etc/bash_completion"
if [[ $(command -v brew) != '' ]] && [[ -f $(brew --prefix)/etc/bash_completion ]]; then
source $(brew --prefix)/etc/bash_completion;
fi
# or
[[ -f '/usr/local/etc/bash_completion' ]] && source /usr/local/etc/bash_completion
# debian
BASH_COMPLETION_DIR=$(pkg-config --variable=completionsdir bash-completion)
$ ls -Altrh $(brew --prefix bash-completion@2)/share/bash-completion/completions | wc -l
918
brew info bash_completion@2
==> Caveats
Add the following line to your ~/.bash_profile:
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
local files:
$ ls -Altrh /usr/local/etc/bash_completion
lrwxr-xr-x 1 marslo admin 51 Dec 15 12:19 /usr/local/etc/bash_completion -> ../Cellar/bash-completion/1.3_3/etc/bash_completion
$ ls -Altrh /usr/local/etc/profile.d/bash_completion.sh
lrwxr-xr-x 1 marslo admin 70 May 21 16:47 /usr/local/etc/profile.d/bash_completion.sh -> ../../Cellar/bash-completion@2/2.14.0/etc/profile.d/bash_completion.sh
$ ls -Altrh /usr/local/Cellar/bash-completion@2/2.14.0/share/bash-completion/bash_completion
-rw-r--r-- 1 marslo staff 120K May 21 16:47 /usr/local/Cellar/bash-completion@2/2.14.0/share/bash-completion/bash_completion
BASH_COMPLETION="$(brew --prefix bash-completion@2)/etc/profile.d/bash_completion.sh"
# or
BASH_COMPLETION="$(brew --prefix)/opt/bash-completion@2/etc/profile.d/bash_completion.sh"
BASH_COMPLETION_2_DIR="$(brew --prefix bash-completion@2)/share/bash-completion/completions"
test -f "${BASH_COMPLETION}" && source "${BASH_COMPLETION}"
if test -d "${BASH_COMPLETION_DIR}"; then
source <( cat "${BASH_COMPLETION_DIR}"/{brew,tmux,tig-completion.bash} )
if ls "${BASH_COMPLETION_DIR}"/*git* >/dev/null 2>&1; then source <( cat "${BASH_COMPLETION_DIR}"/*git* ) ; fi
if ls "${BASH_COMPLETION_DIR}"/*docker* >/dev/null 2>&1; then source <( cat "${BASH_COMPLETION_DIR}"/*docker* ) ; fi
fi
troubleshooting
-bash: [: too many arguments
files:
vim $(brew --prefix)/etc/bash_completion.d/gcc
vim $(brew --prefix)/etc/bash_completion.d/ifupdown
vim $(brew --prefix)/etc/bash_completion.d/ipsec
vim $(brew --prefix)/etc/bash_completion.d/kldload
vim $(brew --prefix)/etc/bash_completion.d/man
vim $(brew --prefix)/etc/bash_completion.d/net-tools
vim $(brew --prefix)/etc/bash_completion.d/pkg_install
vim $(brew --prefix)/etc/bash_completion.d/procps
vim $(brew --prefix)/etc/bash_completion.d/wireless-tools
list_of_files: Call the linter with the list of files as argument
project: Call the linter from the root of the project
list_of_files
GROOVY_NPM_GROOVY_LINT_FILE_EXTENSIONS
Allowed file extensions. "*" matches any extension, "" matches empty extension. Empty list excludes all files. Ex: [".py", ""]
[".groovy", ".gvy", ".gradle", ".nf"]
GROOVY_NPM_GROOVY_LINT_FILE_NAMES_REGEX
File name regex filters. Regular expression list for filtering files by their base names using regex full match. Empty list includes all files. Ex: ["Dockerfile(-.+)?", "Jenkinsfile"]
["Jenkinsfile"]
GROOVY_NPM_GROOVY_LINT_PRE_COMMANDS
List of bash commands to run before the linter
-
GROOVY_NPM_GROOVY_LINT_UNSECURED_ENV_VARIABLES
List of env variables explicitly not filtered before calling GROOVY_NPM_GROOVY_LINT and its pre/post commands
-
GROOVY_NPM_GROOVY_LINT_CONFIG_FILE
npm-groovy-lint configuration file nameUse LINTER_DEFAULT to let the linter find it
$ manpath -d
-- Searching PATH for man directories
-- Adding /Users/marslo/perl5/man to manpath
-- Adding /Users/marslo/.local/share/man to manpath
-- Adding /usr/local/Cellar/icu4c@71.1/71.1/share/man to manpath
-- Adding /usr/local/vim/share/man to manpath
-- Adding /Applications/MacVim.app/Contents/man to manpath
-- Adding /usr/local/opt/llvm/share/man to manpath
-- Adding /usr/local/opt/util-linux/share/man to manpath
-- Adding /usr/local/opt/gnu-getopt/share/man to manpath
-- Adding /usr/local/opt/binutils/share/man to manpath
-- Adding /usr/local/opt/ruby/share/man to manpath
-- Adding /usr/local/opt/tcl-tk/share/man to manpath
-- Adding /usr/local/Cellar/node/21.1.0/share/man to manpath
-- Adding /usr/local/Cellar/openjdk/21.0.2/libexec/openjdk.jdk/Contents/Home/man to manpath
-- Adding /usr/local/opt/ed/share/man to manpath
-- Adding /usr/local/opt/git-extras/share/man to manpath
-- Adding /usr/local/opt/gettext/share/man to manpath
-- Adding /usr/local/opt/file-formula/share/man to manpath
-- Adding /usr/local/opt/openldap/share/man to manpath
-- Adding /usr/local/opt/curl/share/man to manpath
-- Adding /usr/local/opt/openssl/share/man to manpath
-- Adding /usr/local/opt/libiconv/share/man to manpath
-- Adding /usr/local/opt/sqlite/share/man to manpath
-- Adding /usr/local/share/man to manpath
-- Adding /usr/local/man to manpath
-- Adding /usr/share/man to manpath
-- Adding /Library/Apple/usr/share/man to manpath
-- Adding /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/share/man to manpath
-- Adding /Applications/Xcode.app/Contents/Developer/usr/share/man to manpath
-- Adding /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man to manpath
-- Adding default manpath entries
-- Parsing config file: /etc/man.conf
-- Using manual path: /Users/marslo/perl5/man:/Users/marslo/.local/share/man:/usr/local/Cellar/icu4c@71.1/71.1/share/man:/usr/local/vim/share/man:/Applications/MacVim.app/Contents/man:/usr/local/opt/llvm/share/man:/usr/local/opt/util-linux/share/man:/usr/local/opt/gnu-getopt/share/man:/usr/local/opt/binutils/share/man:/usr/local/opt/ruby/share/man:/usr/local/opt/tcl-tk/share/man:/usr/local/Cellar/node/21.1.0/share/man:/usr/local/Cellar/openjdk/21.0.2/libexec/openjdk.jdk/Contents/Home/man:/usr/local/opt/ed/share/man:/usr/local/opt/git-extras/share/man:/usr/local/opt/gettext/share/man:/usr/local/opt/file-formula/share/man:/usr/local/opt/openldap/share/man:/usr/local/opt/curl/share/man:/usr/local/opt/openssl/share/man:/usr/local/opt/libiconv/share/man:/usr/local/opt/sqlite/share/man:/usr/local/share/man:/usr/local/man:/usr/share/man:/Library/Apple/usr/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man
/Users/marslo/perl5/man:/Users/marslo/.local/share/man:/usr/local/Cellar/icu4c@71.1/71.1/share/man:/usr/local/vim/share/man:/Applications/MacVim.app/Contents/man:/usr/local/opt/llvm/share/man:/usr/local/opt/util-linux/share/man:/usr/local/opt/gnu-getopt/share/man:/usr/local/opt/binutils/share/man:/usr/local/opt/ruby/share/man:/usr/local/opt/tcl-tk/share/man:/usr/local/Cellar/node/21.1.0/share/man:/usr/local/Cellar/openjdk/21.0.2/libexec/openjdk.jdk/Contents/Home/man:/usr/local/opt/ed/share/man:/usr/local/opt/git-extras/share/man:/usr/local/opt/gettext/share/man:/usr/local/opt/file-formula/share/man:/usr/local/opt/openldap/share/man:/usr/local/opt/curl/share/man:/usr/local/opt/openssl/share/man:/usr/local/opt/libiconv/share/man:/usr/local/opt/sqlite/share/man:/usr/local/share/man:/usr/local/man:/usr/share/man:/Library/Apple/usr/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man
manual add man.1
$ mkdir -p ~/.local/share/man/man1
$ cp bat.1 ~/.local/share/man/man1/
# run manpath to check
$ manpath
/user/marslo/.local/share/man:/usr/local/share/man:/usr/share/man
# or specific path with `MANPATH`
$ export MANPATH=~/some/path/man:$MANPATH
others
[!NOTE|label:references:]
|
|
|
/templates
download mysql-connector-java-*.tar.gz in -> Platform Independent