unable to install pg-native (libpq-dev) on ubuntu 14.04 - postgresql

I'm trying to install https://github.com/brianc/node-pg-native on a container.
Looks like I've to install postgresql (server) to install libpq-dev. I don't want to install postgresql server on a container, as it has to only connect to server.
I tried installing on postgresql-client but no use. I'm using ubuntu:14.04 . Any suggestions?
If I'm doing something completely please wrong let me know.

libpq-dev doesn't install the full server but does install a lot of development dependencies. The pg-native node module doesn't supply pre built binaries so you need to install all the dev dependencies for npm to complete the build for you.
If you are concerned about your image size, it is possible to build the node module in a build container with all the build dependencies to create a tar.gz of it. Then extract the built package into your app instead of using npm install. This can be done generally for all node modules to speed up your build process and remove all build tools from the docker image you run the application from.

Related

How can I install uwsgi on yocto without pip and doesn't have it's own recipe?

I need to install uwsgi and I am creating using yocto. However, there is no recipe for this and I also cannot find install procedure without using pip. Is there some ways or examples to follow?
I'm currently using:
BB_VERSION 1.32.0
BUILD_SYS x86_64-linux
DISTRO poky
DISTRO_VERSION 2.2
python 2.7.12
flask 0.11.1
I'm expecting build a webpage utilizing nginx, flask, and uwsgi.
Currently I'm using react framework and nginx and it all shows up correctly, except uwsgi I have no idea how to start with.
You can download it manually as said in the documentation: https://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html

Offline Ros Bridge Intallation / without internet

We want to install Ros Bridge to our server. But we don't have internet access on server. Is it possible we can install without internet?
Thank you...
You can download the package and all it's dependencies on a different device (with similar architecture) like
sudo apt-get install ros-<rosdistro>-rosbridge-server --download-only
This will place the packages at /var/cache/apt/archives. The files then can be used for installation without the need of downloading them again. So after moving them to your server, this can be done with
apt-get install ros-<rosdistro>-rosbridge-server

Issue during Redmine installation

We have a Redmine instance on the centos 7 server with Bitnami. I am getting following error during installation of an another Redmine instance.
Command Used:
[root#localhost htdocs]# bundle install --without development test
Error Message:
An error occurred while installing mysql2 (0.3.21), and Bundler cannot continue.
Make sure that gem install mysql2 -v '0.3.21' succeeds before bundling.
The Bitnami installer includes a ready to use Redmine stack, so I assume you're trying to install additional plugins on the vanilla Redmine install.
I suspect that you forgot to load the proper environment variables to use the Bitnami Stack mysql libraries. Go to your install directory (usually /opt/bitnami/redmine) and execute this source ./use_redmine
And then follow this instructions https://docs.bitnami.com/installer/apps/redmine/#install_plugins

Cf application in Bluemix - install dependency package

I have a Spring Boot application deployed as a Cloud Foundry app on Bluemix. Unfortunately the core of this app depends on an external program (e.g. abc) which can be easily installed using apt-get install abc on a desktop environment.
Is there any way to install such a dependency in a cloud foundry environment?
Many thanks for your support
Luca
I'm working on a similar challenge with R and am using a soon-to-be-discontinued git repo which uses apt-get options to allow you to redirect your install into folders/directories where you have write authority during the staging process. You'll have to update your paths to ensure that you can access the installed code. The install process is multi-step,
define the alternate path for apt
define the path for your installation
update apt
use apt-get install ... to download the necessary packages and associated dependencies
use dpkg to install the downloaded packages

how install rvm on RHL7 using centos repo

How to install rvm(ruby) on RHL7 using centos repo.
I know if we are using centos repository we should be using centos OS and not RedHat, but we have a proprietary software that require Redhat.
when I try to install ruby 1.93 using rvm I got this:
rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: redhat/6/x86_64/ruby-1.9.3-p551.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for redhat.
Unable to locate SystemId file. Is this system registered?
Our client does not have registered system with redhat, So I did configure centos repository.
But how can I tell RVM to use this centos repository?
I managed the problem running:
rvm autolibs read-only
In that way rvm do not try to download the dependencies from redhat. But it tell us what is missing, so we can install what is missing manually with yum install from centos repository.
RedHat uses the concept of software collection to offer update packages for Ruby, Python, etc:
softwarecollections
For your case, they have software collection for Ruby193 and Ruby22.
On each page you will find instructions on how to use it.