Closed JerzySpendel closed 9 years ago
Where did you install it to?
Normally, one would install it to /usr/mark2
or /usr/local/share/mark2
and symlink to /usr/local/bin/mark2
so it's able to be ran using mark2 start /path/to/server
or just mark2 start
I didn't install it, I just went to the folder when it was clonned and typed python2 mark2 config
. I also tried with installation but then if i type mark2
i get:
Traceback (most recent call last):
File "/usr/bin/mark2", line 5, in
And urwid is of course installed.
try running export EDITOR=nano
first.
And what it is supposed to do?
That sets your default editor to nano.
You can also create the directory /etc/mark2 and create a blank file inside called mark2.properties
And why I should have nano as default editor? I created mark2.properties
in /etc/mark2
and I while running python2 mark2 config
I got:
Traceback (most recent call last): File "mark2", line 6, in
sys.exit(main()) File "/home/jerzy/mc/mark2/mk2/launcher.py", line 611, in main command.start() File "/home/jerzy/mc/mark2/mk2/launcher.py", line 126, in start self.run() File "/home/jerzy/mc/mark2/mk2/launcher.py", line 485, in run subprocess.call([editor, path_tmp]) File "/usr/lib/python2.7/subprocess.py", line 522, in call return Popen(_popenargs, *_kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
No, you are doing it all wrong...
Check out the installation instructions again. follow them closely.
What I have done wrong? I clonned repository in /home/jerzy/mc
and I have now it in /home/jerzy/mc/mark2
. In installation guide is said that i don't have to install it in any particular place, so I left it in this directory and I symlinked to /usr/bin/mark2
by sudo ln -s /home/jerzy/mc/mark2/mark2 /usr/bin/mark2
. After symlinking INSTALL.md says nothing more, so i guess it's done. Which step of installation I described you I haven't done as I should?
Are you using ubuntu?
Try running it in the recommended location using the recommended install instructions.
or just EDITOR=nano mark2 config
…
When I type: python2 mark2 config I get: