The problem was with RVM and Marked not knowing about it. It was
just using the system ruby instead of the one I had installed. I
was able to switch to the system ruby and then install the gem
rvm use system
sudo gem install RedCloth
This installed redcloth in /usr/bin/redcloth Using this as the
path in Marked and now everything works.
Couple of thoughts. It would be nice for Marked to detect the
shell and then load an environment to process the command. Since
most processors are CLI based, having the right PATH and ENV
settings would be useful. The reason you need to detect the IMO, is
b/c not everyong uses default bash. I use zsh and I don't think my
bash profile would of loaded the RVM settings.
Brett on 13 Dec, 2011 09:52 PM
Unfortunately I can't, as far as I know. I just shell the command out as a process and the thread gets whatever the default system has. PATH and ENV have to be set explicitly in a shell script that calls the gem if they differ from the base environment.