Add Help Message

Not everyone runs Ubuntu/Debian and is using apt-get, so add a friendly reminder to check with your distro's documentation for help.
This commit is contained in:
Rowan Decker 2014-03-29 18:59:10 -05:00
parent 8f3f9f8516
commit cad1448b9f
3 changed files with 4 additions and 4 deletions

View file

@ -71,7 +71,7 @@ class SetupFactory(object):
print("Before can play any levels you must update the database. See the Setup section here:")
print("https://github.com/codecombat/codecombat/wiki/Developer-environment#setup")
print("")
print("Once done visit http://localhost:3000")
print("Go to http://localhost:3000 to see your local CodeCombat in action!")
def cleanup(self):
self.config.directory.remove_tmp_directory()

View file

@ -12,14 +12,14 @@ class RepositoryInstaller():
assert isinstance(self.config,configuration.Configuration)
if not self.checkIfGitExecutableExists():
if self.config.system.operating_system == "linux":
raise errors.CoCoError("Git is missing. Please install it(with apt, type 'sudo apt-get install git'")
raise errors.CoCoError("Git is missing. Please install it (try 'sudo apt-get install git')\nIf you are not using Ubuntu then please see your Linux Distribution's documentation for help installing git.")
elif self.config.system.operating_system == "mac":
raise errors.CoCoError("Git is missing. Please install the Xcode command line tools.")
raise errors.CoCoError(u"Git is missing. Please install git.")
#http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools
if not self.checkIfCurlExecutableExists():
if self.config.system.operating_system == "linux":
raise errors.CoCoError("Curl is missing. Please install it(with apt, type 'sudo apt-get install curl'")
raise errors.CoCoError("Curl is missing. Please install it(try 'sudo apt-get install curl')\nIf you are not using Ubuntu then please see your Linux Distribution's documentation for help installing curl.")
elif self.config.system.operating_system == "mac":
raise errors.CoCoError("Curl is missing. Please install the Xcode command line tools.")
raise errors.CoCoError(u"Git is missing. Please install git.")

View file

@ -34,7 +34,7 @@ class Ruby(dependency.Dependency):
elif operating_system == u"mac":
raise errors.CoCoError(u"Ruby should be installed with Mac OSX machines. Please install Ruby.")
elif operating_system == u"linux":
raise errors.CoCoError(u"Please install Ruby on your Linux distribution(try 'sudo apt-get install ruby'.")
raise errors.CoCoError(u"Please install Ruby (try 'sudo apt-get install ruby').\nIf you are not using Ubuntu then please see your Linux Distribution's documentation for help installing ruby."")
def install_ruby_on_windows(self):
raise NotImplementedError