install a software like postgresql in ubuntu

Asked by Bijit

I do not how to install softwares like postgresql,or other downloaded software in ubuntu operating system.
Software details: postgresql-8.3.5-1-linux-x64.bin .How can I install it.
Please help.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu postgresql Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Hemanth (hemanth-hm) said :
#1

Bijit follow these steps :

$ cd <to the location where you have downloaded your file>

$ sudo chmod 777 postgresql-8.3.5-1-linux-x64.bin

$ sudo ./postgresql-8.3.5-1-linux-x64.bin

[that is sudo [dot][slash] ==>"./"]

Done thats it :)

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

Please tell....

There is a good reason to install postgresql from downloaded files instead to use the repository ready made packages...?

Thank you

Revision history for this message
Bijit (bijitcse2006) said :
#3

Thank you Hemanth for your response.
But I am still having some problem during installaton.I have performed the following steps.
First I copy the file in my desktop.Then

bijit@ubuntu:~$ cd /home/bijit/Desktop
bijit@ubuntu:~/Desktop$ sudo chmod 777 postgresql-8.3.5-1-linux-x64.bin
[sudo] password for bijit:
bijit@ubuntu:~/Desktop$ sudo ./postgresql-8.3.5-1-linux-x64.bin
./postgresql-8.3.5-1-linux-x64.bin: 3: Syntax error: ")" unexpected

How can I solve it.

Revision history for this message
Ansgar Burchardt (aburch) said :
#4

The preferred method to install software in Ubuntu is via its integrated package manager. The package for PostgreSQL is called "postgresql-8.3".

You can install it either via Synaptic[1] or on the command line with the command
    apt-get install postgresql-8.3

Most of the time this is easier than installing the software manually.

Regards,
Ansgar

[1] https://help.ubuntu.com/community/SynapticHowto

Revision history for this message
Hemanth (hemanth-hm) said :
#5

$ sudo gedit postgresql-8.3.5-1-linux-x64.bin

{this opens a file}

You can just edit the small script and change the offending "sh" to "bash".

Can you help with this problem?

Provide an answer of your own, or ask Bijit for more information if necessary.

To post a message you must log in.