Last active
July 3, 2024 05:34
-
-
Save paresharma/ec628a7fa5524a0ed18b227387d1b43a to your computer and use it in GitHub Desktop.
Rails on Termux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt update && apt upgrade | |
apt install ruby vim git nodejs | |
apt install ruby-dev libxml2-dev libxslt-dev pkg-config make clang | |
gem install nokogiri -- --use-system-libraries | |
apt install libsqlite-dev | |
gem install sqlite3 | |
apt install libffi-dev | |
gem install rb-inotify | |
gem install ffi | |
apt install openssh | |
sshd | |
packages install postgresql postgresql-contrib postgresql-dev | |
gem install pg | |
initdb -D ~/postgres/ | |
# pg_ctl -D /data/data/com.termux/files/home/postgres/ -l logfile start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Today's Termux doesn't have these packages at all...
apt install ruby-dev libxml2-dev libxslt-dev libsqlite-dev libffi-dev postgresql-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libffi-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libffi
Package libsqlite-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libsqlite
Package libxml2-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libxml2
Package libxslt-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libxslt
Package postgresql-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
postgresql
Package ruby-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
ruby2 ruby
E: Package 'ruby-dev' has no installation candidate
E: Package 'libxml2-dev' has no installation candidate
E: Package 'libxslt-dev' has no installation candidate
E: Package 'libsqlite-dev' has no installation candidate
E: Package 'libffi-dev' has no installation candidate
E: Package 'postgresql-dev' has no installation candidate