Nginx (1.11.x)New Mainline release Installation on Amazon Linux - nginx

enter code hereI need to install nginx latest mainline release 1.11.x on amazon linux running on ec2 instance.
I followed the below link of nginx official documentation to install the same, the steps are very clear but still i couldnt install on amazon linux.
I tried the same on RHEL 7 on ec2 which is perfectly working fine with the steps given in the link but not on amazon linux, Below is the link which i referred to do the installation process
https://www.nginx.com/resources/admin-guide/installing-nginx-open-source/
Is it Amazon linux is not yet compatible with the nginx newer release??? i could install 1.8.x version of nginx in aws linux without issues which is already found in amazon repository.
I tried accessing the nginx repository and install the specific version but i got error, Below is the error which i got
yum install nginx
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 1:1.11.2-1.el7.ngx will be installed
--> Processing Dependency: systemd for package: 1:nginx-1.11.2- 1.el7.ngx.x86_64
--> Processing Dependency: libpcre.so.1()(64bit) for package: 1:nginx-1.11.2-1.el7.ngx.x86_64
--> Finished Dependency Resolution
Error: Package: 1:nginx-1.11.2-1.el7.ngx.x86_64 (nginx)
Requires: systemd
Error: Package: 1:nginx-1.11.2-1.el7.ngx.x86_64 (nginx)
Requires: libpcre.so.1()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
led by skipping the same

Related

RStudio Server (community) can't find libR.so even though it is in path

Note: I have filed this as an issue, but I'm not sure if it is really a bug or just something I need to resolve about my system configuration.
This seems to be a library that causes many people trouble with RStudio and RStudio Server. Often people can fix the problem by reinstalling the core R libraries with apt or manually copying or linking the libR.so file to a place where RStudio finds it.
In my case, I'm using a Conda instance for my R executable.
My instance was working and stopped after upgrading my ubuntu 22.04 VM. I tried some things to fix the problem but have not succeeded.
System details
RStudio Edition : Server
RStudio Version : 2022.07.2+576 (Spotted Wakerobin) for Ubuntu Bionic
OS Version : Ubuntu 22.04.1 LTS
R Version : 4.1.3 (2022-03-10) -- "One Push-Up"
Describe the problem in detail
I have a GCP VM running ubuntu 22.04 which I use for RSS.
I did a sudo apt update && sudo apt dist-upgrade and a restart. RSS stopped working. I ran sudo rstudio-server verify-installation and received
/usr/lib/rstudio-server/bin/rsession: error while loading shared libraries: libR.so: cannot open shared object file: No such file or directory
I decided to reinstall RSS using:
wget https://download2.rstudio.org/server/jammy/amd64/rstudio-server-2022.07.2-576-amd64.deb
sudo gdebi rstudio-server-2022.07.2-576-amd64.deb
and did not receive any errors during installation. However I received the same error as above with verify-installation. I then tried doing conda update --all -y. This also did not fix the problem.
Here is some useful information:
(base) balter#rstudio:~$ which R
/home/balter/conda/bin/R
(base) balter#rstudio:~$ head -n3 /etc/rstudio/rserver.conf
# Server Configuration File
rsession-which-r=/home/balter/conda/bin/R
(base) balter#rstudio:~$ find . -name "libR.so"
./conda/lib/R/lib/libR.so
./conda/pkgs/r-base-4.1.3-h7880091_3/lib/R/lib/libR.so
(base) balter#rstudio:~$ sudo rstudio-server verify-installation
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/var/log/rstudio/rstudio-server/rserver.log'.
/usr/lib/rstudio-server/bin/rsession: error while loading shared libraries: libR.so: cannot open shared object file: No such file or directory

Unable to install libgit2 library on AMI ec2 instance

I am trying to install devtools in a R ami on an amazon ec2 instance. However, before devtools, I need to install some variation of a libgit2 library as a dependency. Given that the amazon distro is red hat, I've tried to install the libgit2-devel variation with the command
sudo yum install libgit2-devel
everytime i get a error message that the package is not available. I have no idea why this is happening.

Installing Phusion Passenger for Nginx, can't find package libnginx-mod-http-passenger

I am using the tutorial at
https://www.phusionpassenger.com/docs/tutorials/deploy_to_production/installations/oss/ownserver/ruby/nginx/
to install Passenger (6.0.4) for use with Nginx. I get to the point where I'm installing the 'libnginx-mod-http-passenger' package, and get the following...
deploy#rpi-tick1:~ $ sudo apt-get install -y libnginx-mod-http-passenger
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libnginx-mod-http-passenger
I am installing for Raspbian-stretch (Debian), and have set up /etc/apt/sources.list.d/passsenger.list as shown below (as instructed in the tutorial)
deploy#rpi-tick1:~ $ cat /etc/apt/sources.list.d/passenger.list
deb https://oss-binaries.phusionpassenger.com/apt/passenger stretch main
It appears that repository contains only 'passenger-doc' packages. Any help would be appreciated.
I just ran into this issue myself while testing out whether my passenger setup will work on an ARM based Ubuntu instance. I believe the cause is that package is available for amd64 but not ARM. I see that you are using Raspbian and Raspberry Pi's are ARM based systems.

Installation failed trying to install MySQL ODBC connector on macOS High Sierra

I'm trying to install this mysql odbc connector on my macOS High Sierra machine, but I get this error:
I tried installing it using installer in the hopes of getting information about what went wrong:
➜ ~ sudo installer -pkg Desktop/mysql-connector-odbc-5.3.9-macos10.12-x86-64bit.pkg -target / -verbose
installer: Package name is MySQL Connector/Odbc 5.3.9
installer: Installing at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing MySQL Connector/Odbc 5.3.9….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer:
#
installer: Validating packages….....
#
installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
But that doesn't help. Do you have any tips on how I can debug this and get the connector installed? Thanks.
I just noticed this:
on this page: https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-installation-binary-osx.html
After installing iODBC (http://www.iodbc.org/dataspace/doc/iodbc/wiki/iodbcWiki/Downloads) it was able to install the connector.
I know I'm reviving an old thread, but having just had this exact problem/issue, and not solving with the iodbc installation, I thought I'd post the solution that worked for me. Use the commmand line... open terminal and run...
pip install mysql-connector-python
or
pip install mysql-connector
For those on an Apple Silicone Mac, this might be caused by having the wrong version of iODBC installed. Make sure to install the one labeled arm64 from iODBS website

Installing (and deploying) Mono ASP.Net to Redhat

I have an Asp.Net app (built in mono) that I am trying to deploy to a Linux Redhat 6 environment. I tried following the instructions on the mono website:
http://www.mono-project.com/docs/web/aspnet/
http://www.mono-project.com/docs/getting-started/install/linux/
I was able to get nginx installed and setup; however it appears I don't have fastcgi-mono-server4 installed. I've been googling all over the place trying to find how to install that on Redhat with no luck. I thought I'd try the apache instructions instead but I'm having no luck getting mod_mono installed. I tried to install mono-devel using yum but I keep getting the following errors:
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libpng15.so.15()(64bit)
Error: Package: libmonosgen-2_0-1-4.0.3.20-0.xamarin.4.x86_64 (download.mono-project.com_repo_centos_)
Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libtiff.so.5()(64bit)
Error: Package: mono-core-4.0.3.20-0.xamarin.4.x86_64 (download.mono-project.com_repo_centos_)
Requires: libc.so.6(GLIBC_2.16)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libtiff.so.5(LIBTIFF_4.0)(64bit)
Error: Package: mono-devel-4.0.3.20-0.xamarin.4.x86_64 (download.mono-project.com_repo_centos_)
Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libpng15.so.15(PNG15_0)(64bit)
I'm kind of at a loss here. Can anyone point me in the right direction to get mono installed on redhat and get my Asp.Net application properly deployed using either nginx or apache?
I had the same problem. I needed to reproduce the production environment (Fedora 17) and I was not able to install mono because of many references errors, similar to the issues mentioned in the question.
The only way to fix this was to download mono's source code and follow the steps he mentions.
I will copy-and-paste the procedure mentioned at: http://help.octopusdeploy.com/discussions/problems/39756-install-mono-on-centos-66
$ sudo yum -y install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget
$ cd /usr/local/src
$ sudo wget http://download.mono-project.com/sources/mono/mono-4.4.0.182.tar.bz2
$ sudo tar jxf mono-4.4.0.182.tar.bz2
$ cd mono-4.0.1
$ sudo ./configure --prefix=/opt/mono
$ sudo make
$ sudo make install
after everything is finished:
$ vi ~/.bashrc
add the following lines:
export PATH=$PATH:/opt/mono/bin
export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig
After that, I was able to correctly compile mono files on Fedora 17.
By the way, I used the latest version of Mono, found at:
http://download.mono-project.com/sources/mono/
Edit:
1) To see the effects of having mono on the path of a root terminal, close all terminal windows and log in again. The effects of changing ~/.bashrc are not seen immediately.
2) To be honest, I would like to be able to run mono from a non-root terminal. To achieve this, the idea is to edit ~/.bashrc from a non-root terminal. The process is the same as above but add "sudo" to edit the bash config for your (non-root) user.
It's been more than a month, if you are still looking for the answer, I found few links which seems to be useful.
http://help.octopusdeploy.com/discussions/problems/39756-install-mono-on-centos-66
http://www.linuxquestions.org/questions/linux-software-2/installing-mono-error-requires-libc-so-6-glibc_2-15-64bit-4175540534/
Even I facing the same problem, trying to fix this, will update if I manage to fix :)
I never did find a solution to this with Redhat 6. We ended up wiping the server and installing Redhat 7. From there, we were able to install and configure mono running on nginx and it works beautifully. I think the Redhat 6 repositories are just too far out of date to handle mono. I would recommend using Redhat 7+.

Resources