Skip to content
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

"gems not installed" Exception #3

Open
elisamuel40 opened this issue Jan 20, 2015 · 5 comments
Open

"gems not installed" Exception #3

elisamuel40 opened this issue Jan 20, 2015 · 5 comments

Comments

@elisamuel40
Copy link

This is awesome, but I have the same problem a guy posted before, I'm getting this exception when I run the getConvertedHTML() method:

Fatal error: Uncaught exception 'Exception' with message 'Premailer or getopt gems not installed'

But he resolved the problem using a different server, but I can't do that on a shared hosting plan.
Any ideas?

@onassar
Copy link
Owner

onassar commented Jan 20, 2015

if you have permissions to do so, try sudo gem install premailer

@elisamuel40
Copy link
Author

I could do it without the sudo command,

Successfully installed premailer-1.8.2
1 gem installed
Installing ri documentation for premailer-1.8.2...
Installing RDoc documentation for premailer-1.8.2...

Didn't worked, so also tried:

# gem install getopt

and got:

Successfully installed getopt-1.4.2
1 gem installed
Installing ri documentation for getopt-1.4.2...
Installing RDoc documentation for getopt-1.4.2...

The stack trace threw this:

 #1 {main} thrown in /home1/robalibr/public_html/thinkilabs/velazquez/assets/Premailer.class.php on line 144

@onassar
Copy link
Owner

onassar commented Jan 20, 2015

My only guess at this point is you don't have access to the gems installed?
I'm actually not sure; that line (144) is caused by the ruby script itself returning an error

Let me know if you find anything
I'll post here if I can think of a something else that might be causing the issue

@elisamuel40
Copy link
Author

Thanks a lot! I post back when I get something.

@thisisjamessmith
Copy link

I had this error when installing on a remote server, and in my case it was due to not having the nokogiri gem installed. Worked fine after a quick gem install nokogiri.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants