-
Notifications
You must be signed in to change notification settings - Fork 15
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
Installation Issues #17
Comments
Look like you have a weird sh binary. What is the output of |
dash? Weird, let me try with bash proper.
Still errors :-( |
I am running zsh for my shell, but that shouldn't make a difference, should it? |
Yep that's strange. Got the same issue:
I have to dig into this one. For the second one try to rm -Rf ~/.oh-my-vim and run the script with bash again (I'm using zsh too) |
I did that before running with bash. |
Looks like virtualenv cant install pip. That's weird... I need to try an install from scratch too. |
So, I've been playing around, and this is what I've discovered. If I let the script download virtualenv.py, then it can't create a virtualenv. If I use my system virtualenv (python-virtualenv on Ubuntu 15.04), then (with some editing) I can make the script work. Also, in the script, I had to remove the "env" and just make ~/.oh-my-vim the virtualenv. Once I adjusted the initial paths in the script, it worked. I've pasted the script below: #!/bin/sh
py=`which python2.7 || which python2.6`
if ! [ -x $py ]
then
echo "Can't find a python interpreter"
exit
fi
echo "Using $py"
ohmyvim="bin/oh-my-vim"
install_dir=$HOME/.oh-my-vim
bundles=$HOME/.vim/bundle
mkdir -p $install_dir
cd $install_dir
if ! [ -d "$install_dir/bin" ]
then
echo "Installing virtualenv using $py..."
venvurl='https://raw.github.com/pypa/virtualenv/master/virtualenv.py'
curl -O -L $venvurl || wget --no-check-certificate -c $venvurl
$py virtualenv.py -q --distribute .
fi
! [ -d $bundles ] && mkdir -p $bundles
echo $install_dir/bin/activate
source $install_dir/bin/activate || . $install_dir/bin/activate
echo "Installing dependencies..."
pip install -q ConfigObject argparse
echo "Installing ranger..."
pip install -q --src="$HOME/.vim/bundle/" \
--install-option="--script-dir=$install_dir/bin" \
-e "git+https://github.com/hut/ranger.git@master#egg=ranger"
echo "Installing oh-my-vim..."
pip install -q --src="$HOME/.vim/bundle/" \
--install-option="--script-dir=$install_dir/bin" \
-e "git+https://github.com/gawel/oh-my-vim.git@master#egg=oh-my-vim"
$install_dir/bin/oh-my-vim version > /dev/null
version=`$install_dir/bin/oh-my-vim version`
echo "Sucessfully installed oh-my-vim $version to $install_dir"
echo "Binary can be found at $install_dir/$ohmyvim"
add_path() {
if [ "`grep $install_dir $1`" = "" ]
then
echo "Adding $install_dir/bin to \$PATH in $1"
cat << EOF >> $1
# Added by oh-my-vim
export PATH=\$PATH:$install_dir/bin
EOF
echo "Now source it!"
echo ""
echo " source $1"
fi
}
if [ -f ~/.zshrc ]
then
add_path ~/.zshrc
elif [ -f ~/.bashrc ]
then
add_path ~/.bashrc
else
echo ""
echo "!! Please add $install_dir/bin to your \$PATH"
echo ""
echo " export PATH=\$PATH:$install_dir/bin"
fi
echo "" |
This is probably not exactly what you want though. I'm guessing you probably want to create a |
The text was updated successfully, but these errors were encountered: