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 3 years ago.
Improve this question
I followed following steps
make clean
./configure
sudo make install
shows -->
PostgreSQL installation complete.
but if typed psql
says -->
Command 'psql' not found, but can be installed with:
apt install postgresql-client-common
Please ask your administrator.
I dont want to install from apt-get install want to install everything from source code only
By default, PostgreSQL is installed in /usr/local/pgsql, so you would type /usr/local/pgsql/bin/psql for the command line client (but remember that you have to create and start a database cluster with initdb first`).
If you don't like that location, use the prefix option of configure:
./configure prefix=/dir/where/you/want/postgres
Usually, ./configure without options will install the product in /usr/local/ and this might not be in your PATH. Can you check psql is present in /usr/local/bin/? If so, you can type the full path to that or add /usr/local/bin/ to your PATH.
Related
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 7 years ago.
Improve this question
I've tried to install docker on my machine, following the instructions for Precise 12.04 found here.
When I try:
curl -sSL https://get.docker.com/ | sh
I get the result:
Either your platform is not easily detectable, is not supported by this
installer script (yet - PRs welcome! [hack/install.sh]), or does not yet have
a package for Docker. Please visit the following URL for more detailed
installation instructions:
https://docs.docker.com/en/latest/installation/
My kernel:
$ uname -r
3.13.0-61-generic
You can download the short installer script to take a look at why it is giving you this message:
curl -sSL https://get.docker.com/ >install-docker.sh
$EDITOR install-docker.sh
Doing that, I see several checks for lsb_release. Is your system missing that command? If so, see this to install it. Or maybe it’s not returning “ubuntu”. If you fix this, the docker installer script may work fine.
If that doesn’t work, you can hard-code a case for your OS (Mint?) in the ubuntu|debian case (line 243), like:
ubuntu|debian|linuxmint) # or maybe you’ll need here: *)
When done editing (or installing lsb_release), run the script to see if it will complete:
sudo ./install-docker.sh
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 am trying to install CUDA. The tutorial is here. When I am trying to install the required headers, I get an error.
This is my command
sudo apt-get install linux-headers-‘uname -r‘
This is the output
root#ubuserver3:/home/ubuadmin# sudo apt-get install linux-headers-‘uname -r‘
E: Command line option 'r' [from -r‘] is not known.
What has happened? I am not a Linux person, FYI. I am just copying and pasting those commands from the tutorial.
The uname -r is a linux command that is supposed to be executed prior to the execution of the apt-get command.
In order to make this work you need to use back-tick characters, not the forward-single-quote characters.
On my keyboard, the back-tick is on the upper left corner key on the same key as ~:
this:
sudo apt-get install linux-headers-`uname -r`
not this:
sudo apt-get install linux-headers-‘uname -r‘
try 'uname -a'
It will tell you what version you have to download
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 9 years ago.
Improve this question
When I attempt to start mysqld, it gives me the following error:
./mysqld: line 3: /etc/default/rcS: No such file or directory
I want to run a mysql server on angstrom linux.
Anyone know how to do this?
I got it to work by commenting out the following line from my /etc/init.d/mysqld file:
. /etc/default/rcS
This is a quick fix I'm guessing, I am not sure what that file does so I don't know the implications of this action, but the mysql server is now working ok!
Your system is missing the file. Apparently it's part of the 'initscripts' package. You can attempt installing it with "sudo apt-get install initscripts". If it's been a while since updates: "sudo apt-get update && sudo apt-get upgrade", but maybe just the update will work. If none of that works, find one online that's suitable for your system and create it manually.
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'm trying to install Tengine which is based off of Nginx from their Github page:
The page says, "To install Tengine, just follow these three steps:
$ ./configure
$ make
# make install
Can someone tell me the actual first step on how to download Tengine to my server so I can install it?
I'll be using Amazon's Linux AMI.
Thank you so much!
- Jennifer
To get the latest code from github just execute
git clone https://github.com/alibaba/tengine.git
After that change to directory tengine/
cd tengine/
and start
./configure && make && make install
To install you can use:
wget -c http://tengine.taobao.org/download/tengine.tar.gz
Then, access the folder to which you downloaded (/usr/local/nginx), and find the configure file and excecute it:
./configure
After that you can compile it :)
make
Also, you can check more documentation here:
http://tengine.taobao.org/documentation.html
Hope it helps! :)
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 9 years ago.
Improve this question
I want to update the core packages of R on ubuntu 12.04. But every time R says that it has no permissions to write to the library. Other packages with do not come with the r-core installation through the terminal. sudo apt-get install r-base are installed in my personal library. I gave myself the owner permissions of every library folder and this does not work.
So am i able to make this library writtable and if so, how can i do it? Or is there a way to Run R as administrator/root.
I already tried a lot of options from the internet but could not find what i was looking for.
Many thanks in advance!
Yes, by default R packages get installed under /usr/lib, and you need superuser privileges to install more.
So you can either run R using sudo and run commands like install.packages() from there:
sudo R
or edit your ~/.Renviron as described in this post, e.g.
$ mkdir ~/R_libs
And add this line to ~/.Renviron:
R_LIBS="/home/your_username/R_libs"