Passenger doesn't install with official Ubuntu Nginx package - ruby-on-rails

So it looks like that I have some problems installing the recent passenger with official nginx packages. According to Passenger's official document here:
http://www.modrails.com/documentation/Users%20guide%20Nginx.html#install_add_apt_repo
I have done everything it tells from 2.3.1. My system is Ubuntu 13.10 and is currently installed the passenger Nginx via gem. Now I wish to change the service to using the official packages since I believe it does have better integration support, also along with better support with logrotate. So when I have executed the main command of installation:
sudo apt-get install nginx-extras passenger
It spits error showing this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
nginx-extras : Depends: perl (>= 5.14.2-21+deb7u1) but 5.14.2-21build1 is to be installed
Depends: libgd2-noxpm (>= 2.0.36~rc1~dfsg) but it is not installable or
libgd2-xpm (>= 2.0.36~rc1~dfsg) but it is not installable
Recommends: passenger (< 4.0.34) but 1:4.0.33-1~wheezy1 is to be installed
E: Unable to correct problems, you have held broken packages.
I wonder why and how the dependency check is so strict to this degree. As it says I need packages for Debian but I am on Ubuntu so it is natural that the package names are slightly different. Can anyone make any solutions for this? Thanks very much.
Also, there is a side question: if this is successful, does Nginx automatically support IPv6?

In 2.3.1 step 3, did you add the Ubuntu 13.10 APT repo, and not the Debian 6/7 APT repo? How does your /etc/apt/sources.list.d/passenger.list look like?

Related

Installing LibIconv using Homebrew in Ubuntu 20.04.1

I’m running Ubuntu 20.04.1 on Hyper-V in Windows 10, and I need to install LibIconv (in order to install ClamAV through a Homebrew package).
When I run brew install clamav or brew install libiconv I get this:
libiconv: is not needed on Linux, where iconv.h is provided by glibc
Error: An unsatisfied requirement failed this build.
So far, I’ve made sure I have all the other dependencies for ClamAV listed here. However, I’m having trouble installing LibIconv. I also made an attempt using these instructions, but I don’t think I was successful because I still get that error above. I'm pretty new to the command line, so I appreciate any help.

Unable to install Phusion Passenger on Ubuntu Server 18.04

Running on a fresh install of Ubuntu Server 18.04 on Virtualbox, Windows 10 as the host OS. Ran the instructions on the Phusion Passenger site here
This is the error I'm getting:
steve#heartypet-staging:~$ sudo apt-get install -y libnginx-mod-http-passenger
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libnginx-mod-http-passenger : Depends: passenger (= 1:5.3.4-1~bionic1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Oddly enough, the exact same instructions work fine on the desktop version.
Get default source list from here
https://askubuntu.com/a/1036749
Replace /etc/apt/source.list with the file in the link above.
Then sudo apt update and sudo apt upgrade
And go ahead...
If you having problems with the previous solution, one option is run this command:
sudo nano /etc/apt/sources.list.d/passenger.list
and comment all the lines in this file, then run the command
sudo apt-get install passenger

Unable to install erlang 19 from epel. RHEL

I am trying to install RabbitMQ which needs Erlang above 16. However when I try to install Erlang it installs 14B03 from epel repository.
When I manually download the RPM file and try to install it, it fails due to dependencies. Please suggest.
I am having RHEL 6.8 & Epel 6.8
You can purge erlang completely and install rpm version you need.
If you don't want purge old version, check installing multiple versions

mariadb with rails: can't install libmysqlclient-dev

I have mariadb-10.1 installed on a stock 64bit Ubuntu 15:10.
I have libmysqlclient18 succesfully installed, but I get errors when trying to install libmysqlclient-dev.
steve#steve:~$ dpkg -s libmysqlclient18
Package: libmysqlclient18
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 10
Maintainer: MariaDB Developers <maria-developers#lists.launchpad.net>
Architecture: amd64
Source: mariadb-10.1
Version: 10.1.13+maria-1~wily
Replaces: libmysqlclient18 (<< 10.1.13+maria-1~wily)
Depends: libmariadbclient18 (= 10.1.13+maria-1~wily)
Description: Virtual package to satisfy external depends
This is an empty package that provides an updated "best" version of
libmysqlclient18 that does not conflict with the libmariadbclient18
package.
.
MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
server. SQL (Structured Query Language) is the most popular database query
language in the world. The main goals of MariaDB are speed, robustness and
ease of use.
Homepage: http://mariadb.org/
steve#steve:~$ sudo apt-get install libmysqlclient-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
libmysqlclient-dev : Depends: libmysqlclient18 (= 5.6.28-0ubuntu0.15.10.1) but 10.1.13+maria-1~wily is to be installed
E: Unable to correct problems, you have held broken packages.
Can anyone suggest how to resolve this?
Thanks :-)
Steve
You have to install libmariadbclient-dev instead of libmysqlclient-dev when using MariaDB
sudo apt-get install libmariadbclient-dev
While installing libmariadbd-dev or libmariadbclient-dev package is the easiest way, in some OS's or package managers it is not available.
For example on a mac with homebrew this is not available, I found a workaround though.
To install gem mysql2 on a mac you need mariadb-connector-c in homebrew. This package conflicts with Mariadb symlinks so you need to do run the following in the terminal:
brew unlink mariadb
brew install mariadb-connector-c
Inside the rails project directory, execute:
bundle install (or gem install mysql2)
brew uninstall mariadb-connector-c
brew link mariadb

cant install rails in ubuntu 9.10 in my eee pc

i am trying to install rails in my eee pc with the last version of ubuntu and i have some package that are told installable.how is it possible?i can even install gem
fenec#fenec-laptop:~$ gem
The program 'gem' can be found in the following packages:
* rubygems1.8
* rubygems1.9.1
Try: sudo apt-get install <selected package>
gem: command not found
root#fenec-laptop:/home/fenec# apt-get install rubygems1.8
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package rubygems1.8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package rubygems1.8 has no installation candidate
Is it possible that some package are not installable due to my hardware? I have this problem only with this version of ubuntu i used to have ubuntu 8.10 and rails was working like a charm.
I usually install ruby gems from source. I would try following this guide - it's worked for me on multiple different Ubuntu installs.
See: https://help.ubuntu.com/community/RubyOnRails

Resources