νμ΄ν μΉ νκ΅ μ¬μ©μ λͺ¨μ ννμ΄μ§ μ μ₯μμ μ€μ κ²μ νμν©λλ€!
νμ΄ν μΉ νκ΅ μ¬μ©μ λͺ¨μ ννμ΄μ§λ PyTorch 곡μ ννμ΄μ§ μ μ₯μλ₯Ό 볡μ νμ¬ λ§λ€μμ΅λλ€.
ννμ΄μ§ λΉλλ₯Ό μν΄ Jekyllκ³Ό Bootstrap λ±μ μ¬μ©νκ³ μμ΅λλ€.
μ΄ μ μ₯μλ₯Ό λΉλνκΈ° μν΄ νμν μ μ°¨λ₯Ό μλ΄ν©λλ€.
μ΄ μ μ₯μλ₯Ό λΉλνκΈ° μν΄μλ μλ λꡬλ€μ νμν©λλ€.
macOSμμ homebrewλ₯Ό μ¬μ©νμ λ€λ©΄, μλ λͺ λ Ήμ΄λ‘ μ€μΉνμ€ μ μμ΅λλ€:
brew install rbenv ruby-build nvm
mac os μμ rbenv μ nvm μ μ΅μ΄ μ€μΉν μ΄νμλ μ μ€μ νμΌμ μ λ°μ΄νΈ ν΄μΌν©λλ€.
# κ΄λ ¨ μ€μ μ
λ°μ΄νΈ
cat <<EOT >> ~/.zshrc
eval "$(rbenv init - zsh)"
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && . "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && . "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
EOT
# μ€μ λ°μ
source ~/.zshrc # νΉμ μ¬μμ
μλ λͺ λ Ήμ΄λ‘ μ΄ μ μ₯μμμ νμλ‘ νλ ruby λ²μ μ λ§μΆ° rubyμ bundler, νμ ν¨ν€μ§λ€μ μ€μΉν©λλ€.
rbenv install `cat .ruby-version` # ruby μ€μΉ
gem install bundler -v 2.3.13 # bundler μ€μΉ
rbenv rehash
bundle install # νμ ν¨ν€μ§ μ€μΉ
rbenv rehash
2022λ 7μ 17μΌ νμ¬ apple silicon μμ rbenv install μ§νμ μλμ κ°μ λ¬Έμ λ‘ μ€μΉκ° μλλ λ¬Έμ κ° μμ΅λλ€. https://github.com/openssl/openssl/issues/18720
clang -Iinclude -arch arm64 -O3 -Wall -D_REENTRANT -DZLIB -DZLIB_SHARED -DNDEBUG -I/Users/jlee/.rbenv/versions/2.7.4/include -MMD -MF test/versions.d.tmp -MT test/versions.o -c -o test/versions.o test/versions.c clang -Iinclude -arch arm64 -O3 -Wall -D_REENTRANT -DZLIB -DZLIB_SHARED -DNDEBUG -I/Users/jlee/.rbenv/versions/2.7.4/include -MMD -MF test/wpackettest.d.tmp -MT test/wpackettest.o -c -o test/wpackettest.o test/wpackettest.c test/v3ext.c:201:24: error: implicitly declaring library function 'memcmp' with type 'int (const void *, const void *, unsigned long)' [-Werror,-Wimplicit-function-declaration] if (!TEST_true(memcmp(ip1->data, ip2->data, ip1->length) <= 0))
μλμ κ°μ΄ OPENSSL_CFLAGS λ₯Ό μ€μ ν΄μ ν΄κ²°κ°λ₯ν©λλ€.
OPENSSL_CFLAGS=-Wno-error=implicit-function-declaration rbenv install `cat .ruby-version`
μλ λͺ λ Ήμ΄λ‘ μ΄ μ μ₯μμμ νμλ‘ νλ node.js λ²μ μ λ§μΆ° node.js λ° yarn, νμ ν¨ν€μ§λ€μ μ€μΉν©λλ€.
nvm install # node.js μ€μΉ
nvm use # node.js λ²μ μ μ©
npm install yarn # ν¨ν€μ§ λꡬ μ€μΉ
yarn install # νμ ν¨ν€μ§ μ€μΉ
μλ λͺ
λ Ήμ΄λ‘ jekyllμ μ¬μ©νμ¬ λΉλν©λλ€. λ³κ²½ μ¬νμ μ€μκ°μΌλ‘ νμΈνλ €λ©΄ make build
λμ make serve
λͺ
λ Ήμ΄λ₯Ό μ¬μ©νλ©΄ λ©λλ€.
make build # λΉλ κ²°κ³Όλ¬Όμ `./_site` λλ ν 리μ μ μ₯λ©λλ€.
# make serve
JEKYLL_GITHUB_TOKEN
μ΄ νμν©λλ€. νμ΄ν μΉ νκ΅ μ¬μ©μ λͺ¨μ ννμ΄μ§λ GitHub Pagesλ₯Ό μ¬μ©ν©λλ€.
ννμ΄μ§λ GitHub Actionsλ₯Ό μ¬μ©νμ¬ μλμΌλ‘ λΉλ λ° gh-pages
λΈλμΉμ λ°°ν¬λ©λλ€.
ννμ΄μ§μμ μλͺ»λ λ΄μ© λλ λ³κ²½ / μΆκ°νκ³ μΆμ λ΄μ©μ΄ μλ€λ©΄ μ΄ μ μ₯μμ κΈ°μ¬νμ€ μ μμ΅λλ€.
κΈ°μ¬νκΈ° λ¬Έμλ₯Ό μ°Έκ³ ν΄μ£ΌμΈμ.