Trouble installing from source
colonelsmoothie opened this issue · 1 comments
Hello,
I'm having some trouble while trying to install Anki Server from source. I'll walk you through what I did:
Install all the dependencies we need using easy_install or pip:
$ easy_install webob PasteDeploy PasteScript sqlalchemy simplejson
Or using pip:
$ pip install webob PasteDeploy PasteScript sqlalchemy simplejson
Or you can use your the package manager provided by your OS.
This went okay. I did sudo pip install webob PasteDeploy PasteScript sqlalchemy simplejson instead, if that matters.
Download and install libanki. You can find the latest release of Anki here:
http://code.google.com/p/anki/downloads/list
Look for a *.tgz file with a Summary of "Anki Source". At the time of this writing that is anki-2.0.11.tgz.
Download this file and extract.
Then either:
Run the 'make install', or Copy the entire directory to /usr/share/anki
This went okay, too. Except I installed version 2.0.39 using sudo make install.
Make the egg info files (so paster can see our app):
$ python setup.py egg_info
This is where I'm having trouble. This is what I did after cloning the anki-sync-server github repo:
test@test-VirtualBox:~/anki-sync-server$ sudo python setup.py egg_info
running egg_info
creating AnkiServer.egg-info
writing requirements to AnkiServer.egg-info/requires.txt
writing AnkiServer.egg-info/PKG-INFO
writing top-level names to AnkiServer.egg-info/top_level.txt
writing dependency_links to AnkiServer.egg-info/dependency_links.txt
writing entry points to AnkiServer.egg-info/entry_points.txt
writing manifest file 'AnkiServer.egg-info/SOURCES.txt'
reading manifest file 'AnkiServer.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'anki-bundled'
warning: no previously-included files matching '*.pyc' found under directory 'anki-bundled'
no previously-included directories found matching 'anki-bundle/.git'
writing manifest file 'AnkiServer.egg-info/SOURCES.txt'
As you can see, I have a few warning messages. The libraries didn't end up in the usual place (/usr/local/lib/python2.7/dist-packages) and I have been unable to launch the server. What am I doing wrong?
Thank you!
Okay, I think I got this.
I went ahead and cloned the git repository
cd~
git clone https://github.com/dsnopek/anki-sync-server
Then I installed the dependencies:
pip install webob PasteDeploy PasteScript sqlalchemy simplejson
Then I installed AnkiServer using the local git repository with pip:
sudo pip install git+file:///home/ubuntu/anki-sync-server
After the install, I followed the usual server configuration steps and got it working.
Haven't figured out how to install from source via the repo instructions, I'll let you know if I do. But what I just wrote here worked for me.