Yosemite psql only [closed] - macos

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have done a fresh install of Yosemite. I have read that PostgreSQL is the default database in MacOS now. The problem is that I can't find psql in this new installation. It looks like either I missed to check to install database server or it is not available in Yosemite by default.
I have tried to find the file using: find . | grep psql
The PostgreSQL server is running on remote machine, so, basically I only need command line utility to connect to the remote server
My question is: how can I install just psql (command line utils) without installing the whole server?
Thanks

OS X built-in PostgreSQL is for system data, not for user. Please use Homebrew, Macports, Postgres.app or the EDB installer instead.
It's data directory is for example deleted on upgrade.

Related

bash: telnet: command not found [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last year.
This post was edited and submitted for review last year and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I'm trying to connect the server using telnet, but when I enter telnet localhost 8000. It shows the error of telnet not found. I wrote my code in C and ran it on macOS terminal. Am I supposed to install something before I can use it?
Yes you would need to install telnet to use it on your mac. You can also try using an alternative tool, that comes pre-installed on macOS machines. It is called netcat and you can do the following:
nc -vz localhost 8000
If the command above is not good enough, you can install telnet on your mac by following the tutorial that can be found here:
https://osxdaily.com/2018/07/18/get-telnet-macos/
More precisely, the section titled:
Installing Telnet in MacOS with Homebrew
You will need to install homebrew (it is a package manager for MacOS, similar to yum or apt in linux).

Terraform:MacOS:zsh: exec format error: terraform [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I first installed brew install terraform and it worked fine
But later I tried to install a specific version as below
wget -P terraform_bin/ https://releases.hashicorp.com/terraform/0.12.0/terraform_0.12.0_linux_amd64.zip
unzip -o terraform_bin/terraform_0.12.0_linux_amd64.zip -d terraform_bin/
mv terraform_bin/terraform /usr/local/bin
rm -rf terraform_bin
terraform version
But now it got messed up with installation in MacOS ,When tried running version its failing
You're trying to use a Linux binary on a Mac, meaning you downloaded the wrong file.
If you look at your wget
wget -P terraform_bin/ https://releases.hashicorp.com/terraform/0.12.0/terraform_0.12.0_linux_amd64.zip
you will notice that you fetched the Linux version even though you are running on a Mac.
If you go to https://releases.hashicorp.com/terraform/0.12.0 you will see all the files that are available for that version. The one you want is called terraform_0.12.0_darwin_amd64.zip. Bear in mind that this particular file is for the Intel architecture, and it will run on current Apple Silicon Macs, but Hashicorp will likely offer an Apple Silicon or Universal version in which case you will want that.

Error while installing Atom in Kali Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I was trying to install Atom in Kali Linux Live.
And after command
dpkg -i ~/Downloads/atom-amd64.deb
I get error
dpkg: error: cannot access archive '/root/Downloads/atom-amd64.deb': No such file or directory
I have tried as both root and non-root users
I am using Kali Linux Live with Persistence (Bootable USB)
Same kind of thing happens with Visual Studio code too.
You may have to install kali Linux on the device as Kali Linux Live provides the tools for hacking. If you want to install software, then you have to install Kali or manually install it without a package.
Check out this Reddit post about the issue: https://www.reddit.com/r/linuxquestions/comments/4zgrzs/is_it_possible_to_install_software_on_kali_linux/

How to use homebrew to downgrade postgresql from 10.1 to 9.6 on Mac OS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
My mac has postgresql 10.1 on it, and I need 9.6 for my work website to function on my local machine. Can't find easy instructions on how to uninstall or downgrade to 9.6. Any help would be appreciated!
I got this issue as well after running brew upgrade. Following commands worked for me:
brew uninstall postgresql
brew install postgresql#9.6
brew services start postgresql#9.6
brew link postgresql#9.6 --force

How to install PostgreSQL on windows using command prompt? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Is there any way to install PostgreSQL on windows using command prompt? (Without using PostgreSQL installer)
postgresql-9.3.3-1-windows-x64.exe --unattendedmodeui minimal --mode unattended --superpassword "password" --servicename "postgreSQL"
--servicepassword "password" --serverport 5432
Worth mentioning postgresql-9.3.3-1-windows-x64.exe --help will provide list of options and defaults which can be used.
Run the installer in unattended(silent) mode
-or-
download the plain binaries, initdb a new datadir, then start the server with pg_ctl. You can install a service with standard Windows tools like sc or can use pg_ctl register to create the service.
If you plan to bundle PostgreSQL in an application, please use the latter method (binary zip), and make sure you run it on a port other than the default port 5432 so your app doesn't conflict with any install the user might do themselves.

Resources