How to install uuid-ossp postgresql extension in arch Linux - postgresql

I need to install uuid-ossp postgresql extension on arch linux. I have postgresql-9.5. On ubuntu its easy to do via sudo apt-get install postgresql-contrib but how to do this in arch Linux?

The default postgresql package doesn't provide ossp-uuid-feature. You have to enable it via ./configure before compiling. So you have two ways to get this feature:
compile postgresql yourself with --with-ossp-uuid-flag and install it via make install. (I don't recommend this)
Download the postgresql package specifications via the tool asp. You can install it with sudo pacman -Syu asp and then do: asp checkout postgresql. Then you need to modify the PKGBUILD and insert the --with-ossp-uuid-flag inside of the build()-function. Then you can simply build the package and install it with makepkg -si. It is possible that you need additional dependencies. I haven't tested it, but it should work this way.

Related

Ubuntu16.0.4 Postgresql9.4 offline install

I search url,they are for Linux centos,I don't know how to offline install it in ubuntu16.0.4 .
Any help will appreciated!
Method1:(no success)
set source.list,read readme( from https://apt.postgresql.org/pub/repos/apt/dists/xenial-pgdg/9.4/)
download deb package
copy them to the target computer
dpkg -i *.deb
Method2:(success)
https://techedemic.com/2014/10/01/offline-package-installs-using-dpkg-and-apt-get-ubuntudebianetc/
Ubuntu 16.04 came with postgresql 9.5, IIRC. So you will need to download the right debian packages (for example from the postgresql APT package repository), and transfer them to the target computer), and install them manually (dpkg -i all-dot-deb-files).
But i'd install some newer version of postgres. 9.4 will be end-of-life in one year.

Can't intall chef-manage rpm package

I have CentOS and chef-server. I try to install chef-manage, but something wrong.
When I start install my rpm package
I have this error
You need to install Chef Server (i.e. chef-server-core) first. Then install Manage afterwards via the addons system.

Install only dblink module from postgresql-contrib package in centOS

I would like to install only the dblink module from postgresql-contrib package. I use the command as below
zypper install postgres-contrib
But it installs everything. Is there a way to install a specific module.
There is no reasonable way to install just a part of an RPM package. Is there any specific reason to do so? The contrib package isn't that large and the modules aren't used unless you want to use them.

Location of sphinx-build on CentOS

I have a brand new CentOS 6 box and wanted to install sphinx, in order to compile documents as generated by readthedocs.org i.e. rst files.
In a previous ubuntu box I was running
make html
and that would invoke the
sphinx-build
command and compile the documentation.
I downloaded the latest version of sphinx and installed it as such:
sudo wget http://sphinxsearch.com/files/sphinx-2.1.9-1.rhel6.x86_64.rpm
sudo localinstall sphinx-2.1.9-1.rhel6.x86_64.rpm
Everything seems to be fine but sphinx-build is nowhere to be found.
Any pointers are more than appreciated.
You are mixing up two different tools named Sphinx: the full text search server (http://sphinxsearch.com/) and the documentaton generator (http://sphinx-doc.org/). You need the latter tool in order to compile documents usingsphinx-build.
You can also install rpm package of sphinx (Python documentation generator) with yum at CentOS 6 using:
yum install python-sphinx.noarch
at Fedora 20 using:
yum install python-sphinx-doc.noarch
A short addup, according to offical document, one just need to run
pip install Sphinx to install the python documentation generator, sphinx. Or it can be downloaded from distribution package.

How can I install the postgresql-contrib module in an existing database?

I'm using postgresql 9.1.6 on CentOS. I would like to install the postgresql-contrib module using a binary file, but I can't find it online. I'm unsure if I can install this after already installing postgresql. Is it possible to do this?
I installed postgresql in the following way:
wget http://ftp.postgresql.org/pub/source/v9.1.6/postgresql-9.1.6.tar.gz
tar -xzf postgresql-9.1.6.tar.gz
cd postgresql-9.1.6./configure --prefix=$HOME
make
make install
I am currently using the databases within this install and would prefer not to reinstall it (if possible).
I understand that once I install this I can use a function in the following way:
create extension tablefunc ;
EDIT: If I followed the instructions from here, does gmake and gmake install affect an existing database?
You might be hard pressed to find the contrib modules as binary distributions; however, the very page you linked has explicit instructions on how to build the contrib modules:
When building from the source distribution, these modules are not built automatically. You can build and install all of them by running
gmake
gmake install
in the contrib directory of a configured source tree; or to build and install just one selected module, do the same in that module's subdirectory.
Alternatively, you could try using yum (the package is postgresql-contrib.x86_64), but I can't vouch for the results of this if you installed Postgres from source.