MorganCabral / sse-library

A CMS driven library book management system built on top of Django.
10 stars 2 forks source link

Install script failed on Mac OS #12

Open solanin opened 11 years ago

solanin commented 11 years ago

This happened on Mac OS 10.8 (Mountain Lion).

Nameless14$ ./install.sh --no-prereqs
Prereq installation skipped.
Upgrading pip and installing virtualenv...
Requirement already up-to-date: pip in /usr/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg
Requirement already up-to-date: virtualenv in /usr/local/lib/python2.7/site-packages
Cleaning up...
fatal: destination path 'sse-library' already exists and is not an empty directory.
./install.sh: line 42: virtualenv: command not found
./install.sh: line 45: env/bin/activate: No such file or directory
Downloading/unpacking Django==1.4.1 (from -r requirements.txt (line 1))
  Running setup.py egg_info for package Django

Downloading/unpacking South==0.7.6 (from -r requirements.txt (line 2))
  Running setup.py egg_info for package South

Installing collected packages: Django, South
  Running setup.py install for Django
    error: could not create '/usr/local/lib/python2.7/site-packages/django': Permission denied
    Complete output from command /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;__file__='/var/folders/dh/m47bqhdj7gv7bm50_mfljmnm0000gn/T/pip-build/Django/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/dh/m47bqhdj7gv7bm50_mfljmnm0000gn/T/pip-UZPwrS-record/install-record.txt --single-version-externally-managed:
    running install

running build

running build_py

running build_scripts

running install_lib

creating /usr/local/lib/python2.7/site-packages/django

error: could not create '/usr/local/lib/python2.7/site-packages/django': Permission denied

----------------------------------------
Command /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;__file__='/var/folders/dh/m47bqhdj7gv7bm50_mfljmnm0000gn/T/pip-build/Django/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/dh/m47bqhdj7gv7bm50_mfljmnm0000gn/T/pip-UZPwrS-record/install-record.txt --single-version-externally-managed failed with error code 1 in /var/folders/dh/m47bqhdj7gv7bm50_mfljmnm0000gn/T/pip-build/Django
Storing complete log in /Users/Nameless14/.pip/pip.log
sse-library is installed.
Make sure to run syncdb before attempting to run the app.
./install.sh: line 58: deactivate: command not found
nickserv commented 11 years ago

virtualenv gives me command not found on this machine, but homebrew isn't noticing it as the name of a package either, so I can't install it. sudo pip install --upgrade distribute gives me an error and a weird traceback.

nickserv commented 11 years ago

Now I'm getting a different annoying error when I try to rerun sudo pip install --upgrade distribute. Since the installer uses this command, it also causes the installer to fail (now in a different way).

https://gist.github.com/205ef36b3df30163a5a7

nickserv commented 11 years ago

Also, this link might help: https://gist.github.com/1208841

I tried some stuff in there though, and it gave me the issues I mentioned above (this is all on Jake's machine, not mine).

nickserv commented 11 years ago

Idea from @kristenmills: Try which pip and which python, make sure they're int he same place.