Posts

The examples of Rails 7 and Vue 3 app

The examples of Rails 7 and Vue 3 app [gbarillot](https://github.com/gbarillot/rails-vue-demo-app.git) [pingcrm-vite](https://github.com/ElMassimo/pingcrm-vite) [Deanout](https://github.com/Deanout/vue-vite-rails) [vite_rails_docker_example](https://github.com/ElMassimo/vite_rails_docker_example)  

How to build/install ruby 2.7.5 on ubuntu 22.04

Solution: Download OpenSSL 1.1.1 $ cd ~/Downloads $ wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz $ tar xf openssl-1.1.1q.tar.gz Compile it $ cd ~/Downloads/openssl-1.1.1q $ ./config --prefix=/opt/openssl-1.1.1q --openssldir=/opt/openssl-1.1.1q shared zlib $ make $ make test $ sudo make install Link the system's certs to OpenSSL 1.1.1 directory $ sudo rm -rf /opt/openssl-1.1.1q/certs $ sudo ln -s /etc/ssl/certs /opt/openssl-1.1.1q Install ruby $ RUBY_CONFIGURE_OPTS=--with-openssl-dir=/opt/openssl-1.1.1q asdf install ruby 2.7.5 Error: `require': libssl.so.1.1: cannot open shared object file: No such file or directory - /tmp/ruby-build.... References: https://github.com/rbenv/ruby-build/discussions/1940 https://gist.github.com/yob/08d53a003181aa0fcce9812b1b533870 https://blog.chetanmittaldev.com/how-to-install-older-rubies-on-ubuntu-2204-using-rvm https://github.com/rvm/rvm/issues/5209  

Linux Mint / Ubuntu:

  apt-key Is Deprecated sudo curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo gpg --dearmour -o /usr/share/keyrings/yarnkey.gpg References: - https://www.linuxuprising.com/2021/01/apt-key-is-deprecated-how-to-add.html

How To Install Ruby 3 With rbenv?

Command: rbenv versions git -C ~/.rbenv/plugins/ruby-build pull  rbenv install 3.0 .0 rbenv versions Refrenece: - https://richstone.io/where-is-ruby-3-0-0-on-rbenv/

ERROR: The command 'foreman start"

Image
ERROR: The command 'foreman start" 19:20:41 frontend.1 | error when starting dev server: 19:20:41 frontend.1 | Error: Port 3036 is already in use 19:20:41 frontend.1 | at Server.onError SOLUTION: $ lsof -wni tcp:3036 $ sudo kill -9 PID REFERENCE: -  https://stackoverflow.com/questions/31039998/rails-address-already-in-use-bind2-errnoeaddrinuse

E: Could not get lock /var/lib/dpkg/lock-frontend

Image
 ERROR: SOLUTION: gudao@dmm : ~ $ sudo apt install monit REFERENCE: -  https://askubuntu.com/questions/1109982/e-could-not-get-lock-var-lib-dpkg-lock-frontend-open-11-resource-temporari

英语不可数名词

There is some milk There is some water There is some honey  There is some sugar  There is some cereal