sudo atcd failed
Hello,Sorry for disturbing, I wanna ask for assistance about a problem I rencently encountered .when 'sudo actd' is executed, the sentence"can not find actd" is showed on my screen.However,I have installed atcd.Could anyone give me some suggestions or solutions?
Hi liuang68
How did you install atc? If in a virtualenv, did you forget to activate it?
According to the installation of the tutorial for ATC,sorry,I don't understand what you say about virtualenv,Could you explain please?How to activate?
@liuang68
https://facebook.github.io/augmented-traffic-control/docs/install.html has indication on how to use python virtualenv.
If you pip installed atc, chances it is under /usr/local/bin/atcd and using sudo /usr/local/bin/atcd will work.
Most likely, /usr/local/bin are not in your PATH.
If that does not help, can you search where atcd got installed find /usr -name atcd
@chantra Hello,I don't have /usr/local/bin/atcd, so how to use sudo atcd work????
@liuang68
Please can you answer those questions
- Can you tell me exactly how you installed ATC (link to documentation you followed)
- Any error messages during the install?
-
If that does not help, can you search where atcd got installed find /usr -name atcd
Thanks
@chantra sudo apt-get install python-pip python-dev build-essential) sudo pip install --upgrade pip pip install atc_thrift atcd django-atc-api django-atc-demo-ui django-atc-profile-storage django-admin startproject atcui cd atcui gedit atcui/settings.py INSTALLED_APPS = ( ... # Django ATC API 'rest_framework', 'atc_api', # Django ATC Demo UI 'bootstrap_themes', 'django_static_jquery', 'atc_demo_ui', # Django ATC Profile Storage 'atc_profile_storage', ) gedit atcui/urls.py ... ... from django.views.generic.base import RedirectView
urlpatterns = patterns('', ... # Django ATC API url(r'^api/v1/', include('atc_api.urls')), # Django ATC Demo UI url(r'^atc_demo_ui/', include('atc_demo_ui.urls')), # Django ATC profile storage url(r'^api/v1/profiles/', include('atc_profile_storage.urls')), url(r'^$', RedirectView.as_view(url='/atc_demo_ui/', permanent=False)), ) python manage.py migrate
Refer to this link http://www.cnblogs.com/coderzh/p/AugmentedTrafficControl.html
It's over.The above is the installation is complete, then no atcd command In met timeout problem when I download the class library, download a few times with respect to OK, also is the problem of authority is not enough, use chmod 777 to give permission, no other question
pip install atc_thrift atcd django-atc-api django-atc-demo-ui django-atc-profile-storage
unless you ran that in a virtual environment, you should have gotten an error
You will need to run it using sudo or follow https://facebook.github.io/augmented-traffic-control/docs/install.html and set up the virtualenv (search for Virtual Environment on that page).
Maybe you can also reach out to the author of the tutorial. I can read Chinese, but I dont see reference to virtualenv, and as it is, the tutorial should not work.
Also, unless you post the logs from when you run pip install, there is not much we can do to help.
@chantra Thank you, in accordance with your tutorial I try, my machine is a physical machine, also need to install the Virtual environment in physical machine???
This is unrelated to virtual or physical machine: http://docs.python-guide.org/en/latest/dev/virtualenvs/
@chantra I see, in https://facebook.github.io/augmented-traffic-control/docs/install.html ,
There is a place Don't understand,
for pkg in atc_thrift atcd
django-atc-api django-atc-demo-ui django-atc-profile-storage
do
pip install $pkg
done
that is a shell??