Skip to content

Instantly share code, notes, and snippets.

View FooBarWidget's full-sized avatar

Hongli Lai FooBarWidget

View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC25pwlRmDOdB9D1a1xWZBLqNo7PwIt1vEuM8Y298ZoLeXx0iOOoI6qxcBmeMZJJZ3v9rrtMD7zQ7ijg5JMa19cSx4MnxAGes/QjSso2SfbKPuKPRCvRNU6tNZ5vRKNJZxX3EmxeEjTkhKaF0kK1ja6cDEG9O3ldV28kHqcNXOVjBTzqLTfll2+XnXRUWAu0PBpzwhA1hsgzbofGWsYyclOTHk4Vjwb8u9EaUQPo40im7H/q/zATZi+S1oUxsnuMPdEGKVSNnrWZOQFvYY17EzJOnIwdwfCQjVoXJZzArlF46KVQwXvbcpkHga5KxusbGwZWbrt7ZgFuzgpRf62Ty/r [email protected]
# encoding: utf-8
# Phusion Passenger - https://www.phusionpassenger.com/
# Copyright (c) 2013 Phusion
#
# "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
--> Running transaction check
---> Package mod_passenger.x86_64 0:3.0.21-5.el6 will be updated
---> Package mod_passenger.x86_64 0:4.0.33-1.el6 will be an update
---> Package passenger-devel.x86_64 0:4.0.33-1.el6 will be obsoleting
---> Package passenger-doc.noarch 0:4.0.33-1.el6 will be obsoleting
---> Package passenger-native-libs.x86_64 0:4.0.33-1.el6 will be obsoleting
---> Package rubygem-passenger-devel.x86_64 0:3.0.21-5.el6 will be obsoleted
---> Package rubygem-passenger-doc.x86_64 0:3.0.21-5.el6 will be obsoleted
---> Package rubygem-passenger-native-libs.x86_64 0:3.0.21-5.el6 will be obsoleted
--> Processing Dependency: rubygem-passenger-native-libs(x86-64) = 3.0.21-5.el6 for package: rubygem-passenger-native-3.0.21-5.el6.x86_64
# I ran this after running:
# sudo yum install rubygem-passenger rubygem-passenger-doc rubygem-passenger-native rubygem-passenger-native-libs mod_passenger rubygem-passenger-devel
$ sudo yum install x86_64/passenger-4.0.33-1.el6.x86_64.rpm x86_64/passenger-devel-4.0.33-1.el6.x86_64.rpm x86_64/passenger-native-libs-4.0.33-1.el6.x86_64.rpm x86_64/mod_passenger-4.0.33-1.el6.x86_64.rpm noarch/passenger-doc-4.0.33-1.el6.noarch.rpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.transip.nl
* epel: ftp.acc.umu.se
* extras: mirror.muntinternet.net
* updates: mirror.oxilion.nl
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/Users/hongli/.rvm/rubies/ruby-1.9.3-p484 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --enable-shared
## --------- ##
## Platform. ##
[hongli@asuna-3939 ~]$ rvm uninstall ruby-1.9.3
ruby-1.9.3-p484 - #removing rubies.
[hongli@asuna-3939 ~]$ rvm reinstall ruby-1.9.3
Searching for binary rubies, this might take some time.
Found remote file /Users/hongli/.rvm/archives/ruby-1.9.3-p484.tar.bz2
Checking requirements for osx_brew.
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.
Requirements installation successful.
ruby-1.9.3-p484 - #configure
ruby-1.9.3-p484 - #download
#!/bin/env bash
# wget -O install.sh https://gist.github.com/FooBarWidget/7812424.txt && sudo bash install.sh
# https://code.google.com/p/phusion-passenger/issues/detail?id=902
set -ex
export PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/bin
# Install development environment
yum --assumeyes groupinstall 'Development Tools'
# install ruby depencies

A minimal Ubuntu base image modified for Docker-friendliness

Baseimage-docker is a special Docker image that is configured for correct use within Docker containers. Other than modifications for Docker-friendliness, it is just Ubuntu. You can use it as a base for your own Docker images.

Baseimage-docker is available for pulling from on the Docker registry!

[email protected] /vagrant/metrics-frontend
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
# Save the file inside the Passenger source dir and run: ruby file.rb
$LOAD_PATH.unshift(File.expand_path("lib"))
require 'phusion_passenger/platform_info'
p PhusionPassenger::PlatformInfo.find_command("cc", false)
p File::SEPARATOR
p ENV["PATH"]
p File.file?("/usr/bin/gcc")
p File.executable?("/usr/bin/gcc")