-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Mailcatcher on 14.04 #312
Comments
This repo is now using Ubuntu 14.04. Try 12.04 at Fideloper/vaprobash12 of I'm not sure yet if 14.04 changes the install process for mail catcher yet! On Friday, May 9, 2014, Jeremy Worboys [email protected] wrote:
|
Yeah, by updated my vm I meant to get 14.04. Re-provisioning now with RVM to see if it helps. Edit: No cigar with RVM |
OK, thanks. We'll have to take a look! |
Issue #333 also noted a need for > 385MB memory to be assigned. |
#346 points out that we can install |
I just figured this out too, wish I saw this thread. I did a test please get this installed in your scripts :) |
This is now in Master. Note that if you get a new Vagrantfile, you'll need to change the branch to "master" to get these fixes until they are turned into a point-release. |
# By fideloper (15) and others # Via fideloper (5) and Chris Fidao (3) * 'master' of https://github.com/fideloper/Vaprobash: tagging stable 1.0.1 php gpg key fix php5-fpm update for socket settings. does not matter 100% because they are unix socket settings instead of tcp fixing some apache errors added vagrant user to group www-data in apache install moved php group change to php installer assigned www-data group to user vagrant set run-as user for php5-fpm processes to avoid permission errors from apps writing to files fixing wording from last pr Update Comment VagrantFile adding ruby191dev to fix fideloper#312 Installing the newer version updating apache to use mpm_event using mpm-event with apache2 instead of pre-fork First stable release! Releases will now follow semver. New features will be added in at a slower pace, with bug fixes taking priority. vhost assumes php. Apache remotes proxypassmatch if php/hhbm is not installed -qq used for installing, and consistenly applied in arg order redis using a ppa fixing couchbase PHP extension install for 5.5
Vaprobash can't install Mailcatcher ==> default: >>> Installing Mailcatcher
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: Selecting previously unselected package libsqlite3-dev:amd64.
==> default: (Reading database ... 65191 files and directories currently installed.)
==> default: Preparing to unpack .../libsqlite3-dev_3.8.2-1ubuntu2_amd64.deb ...
==> default: Unpacking libsqlite3-dev:amd64 (3.8.2-1ubuntu2) ...
==> default: Selecting previously unselected package ruby1.9.1-dev.
==> default: Preparing to unpack .../ruby1.9.1-dev_1.9.3.484-2ubuntu1_amd64.deb ...
==> default: Unpacking ruby1.9.1-dev (1.9.3.484-2ubuntu1) ...
==> default: Setting up libsqlite3-dev:amd64 (3.8.2-1ubuntu2) ...
==> default: Setting up ruby1.9.1-dev (1.9.3.484-2ubuntu1) ...
==> default: Building native extensions. This could take a while...
==> default: ERROR: Error installing mailcatcher:
==> default: ERROR: Failed to build gem native extension.
==> default:
==> default: /usr/bin/ruby1.9.1 extconf.rb
==> default: checking for main() in -lssl... no
==> default: checking for rb_trap_immediate in ruby.h,rubysig.h... no
==> default: checking for rb_thread_blocking_region()... yes
==> default: checking for inotify_init() in sys/inotify.h... yes
==> default: checking for writev() in sys/uio.h... yes
==> default: checking for rb_wait_for_single_fd()... yes
==> default: checking for rb_enable_interrupt()... yes
==> default: checking for rb_time_new()... yes
==> default: checking for sys/event.h... no
==> default: checking for epoll_create() in sys/epoll.h... yes
==> default: creating Makefile
==> default:
==> default: make
==> default: compiling binder.cpp
==> default: make: g++: Command not found
==> default: make: *** [binder.o] Error 127
==> default:
==> default:
==> default: Gem files will remain installed in /var/lib/gems/1.9.1/gems/eventmachine-1.0.3 for inspection.
==> default: Results logged to /var/lib/gems/1.9.1/gems/eventmachine-1.0.3/ext/gem_make.out
==> default: update-rc.d: warning: /etc/init.d/cron missing LSB information
==> default: update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
==> default: Adding system startup for /etc/init.d/cron ...
==> default: /etc/rc0.d/K20cron -> ../init.d/cron
==> default: /etc/rc1.d/K20cron -> ../init.d/cron
==> default: /etc/rc6.d/K20cron -> ../init.d/cron
==> default: /etc/rc2.d/S20cron -> ../init.d/cron
==> default: /etc/rc3.d/S20cron -> ../init.d/cron
==> default: /etc/rc4.d/S20cron -> ../init.d/cron
==> default: /etc/rc5.d/S20cron -> ../init.d/cron
==> default: php5-fpm stop/waiting
==> default: php5-fpm start/running, process 16057
==> default: * Restarting web server apache2
==> default: ...done.
==> default: /usr/bin/env: unrecognized option '--ip=0.0.0.0'
==> default: Try '/usr/bin/env --help' for more information. Thanks @fideloper !!! Vaprobash is awesome! Edit: This can help sj26/mailcatcher#144 |
Hi! @LimeBlast - Any info on updates to mailcatcher for ubuntu 14.04? Have you tried it out? I'm not 100% sure on the best way to jump in with this as it uses RVM to install (if RVM is available) - the linked bug for mailcatcher above suggests using RVM to install ruby 2.1+ for use with Mailcatcher. |
Sorry @fideloper, I've not looked at it on 14.04. Seeing as RVM is a requirement for mailcatcher, which needs Ruby 2.1, are you not able to just make sure that the Mailcatcher script installs RVM, and Ruby 2.1, regardless of what else might be going on? |
Thanks for the quick reply! Is RVM a requirement or just a convenient way to get a newer Ruby version? RVM is a separate install here, but perhaps I can make it a requirement if Mailcatcher is used as well. |
@sangar82 I suggest installing RVM and Mailcatcher packages in a NEW Vaprobash server and see if that works for you! |
Well, in truth, it's of course Ruby which is the requirement for Mailcatcher, but as you've got an RVM script as part of Vaprobash, I'd say make it a requirement for the end user - i.e. if you want Mailcatcher, you have to run the RVM install script. If you don't, bad things will happen ;) |
That works for me, I'll see if RVM+Mailcatcher "just works" and if so, that can be that 👍 Thanks again |
Yeah! Now is working! I left a question: it may be better to install ruby-dev instead of ruby1.9-dev? Thanks!!! |
Did you use ruby-dev package or RVM? Thanks On Mon, Sep 1, 2014 at 5:35 PM, Iván Sanchez [email protected]
|
Haha.. I used a combo.. I uncomment this line config.vm.provision "shell", path: "#{github_url}/scripts/rvm.sh", privileged: false, args: ruby_gems.unshift(ruby_version) and this: config.vm.provision "shell", path: "#{github_url}/scripts/mailcatcher.sh" What i said before is this (scripts/mailcatcher.sh): sudo apt-get install -qq libsqlite3-dev ruby1.9.1-dev because I think ruby-dev is required for Mailcatcher |
I installed a new VM yesterday. After doing a vagrant halt and vagrant up (I need to restart my machine) Mailcatcher doesn't work. Before the vagrant halt, Mailcatcher was working fine. This is the log: vagrant@vaprobash:~$ mailcatcher
/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find mailcatcher (>= 0) amongst [bundler-1.7.2, bundler-unload-1.0.2, executable-hooks-1.3.2, gem-wrappers-1.2.5, rubygems-bundler-1.4.4, rvm-1.11.3.9] (Gem::LoadError)
from /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /usr/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
from /usr/local/bin/mailcatcher:22:in `<main>' Thanks Chris!! |
I'd guess that this has to do with installing with RVM - you may need to re-initialize that ruby environment created when installing mailcatcher. RVM creates environments and you might just need to switch "into" them on restart. Check out the docs: http://rvm.io/rvm/basics I'd try running Otherwise I'm not really sure, as I'm not a ruby person. Last note: Halt doesn't restart, it just suspends. Vagrant commands "down" and "up" will restart, "halt" and "resume" will suspend and resume. |
Back when I was playing around with mailcatcher, I noticed there were some issues with making it start automatically after a |
Perhaps the solution is create a gemset, and install mailtcatcher in this gemset.
Something like this?? |
Just updated my project vm and ran into an issue installing Mailcatcher without RVM.
The
sudo aptitude install -y libgemplugin-ruby
line fails withCouldn't find any package whose name or description matched "libgemplugin-ruby"
The text was updated successfully, but these errors were encountered: