找不到Sencha CMD Linux命令

时间:2016-02-15 02:37:13

标签: installation sencha-touch sencha-cmd ubuntu-15.10

我正在尝试在xUbuntu中安装Sencha-Cmd-6.0.2.14。

我已下载SenchaCmd-6.0.2-linux-amd64.sh.zip并将其解压缩到我的桌面。

我通过执行sudo apt-get install default-jdk -y来安装Java。

然后我执行了./SenchaCmd-6.0.2.14-linux-amd64.sh。出现了安装窗口,我成功完成了整个过程。

完成后,我在命令提示符下键入sencha,但我找不到命令错误。

1 个答案:

答案 0 :(得分:2)

Sencha可能不在您的$ PATH中,我不知道它安装在哪里,但可能在您的主目录中的某个位置。通过在终端中发出以下命令,确保Sencha安装目录不在$ PATH中

    from django.contrib.staticfiles.testing import StaticLiveServerTestCase
    from django.test import TestCase, LiveServerTestCase

    from selenium import webdriver
    from selenium.webdriver.common.keys import Keys
    from selenium.webdriver.support.ui import Select

    from login.tests import LogInReusablesScript as LRS , LogInTestFT as LTFT

    from unittest import skip

    import time
    import inspect

    # Create your tests here.
    # Command Line: python manage.py test crew_menu.crew_admin.rank_management

    # python manage.py test crew_menu.crew_admin.rank_management.tests.RankManagementEmptyTestListPage
    class RankManagementEmptyTestListPage(StaticLiveServerTestCase):
        # Used LTFT because LRS already inherits the appended json all throughout
        fixtures = ['login_users.json', 'bio.json']

        def setUp(self):
            self.browser = webdriver.Firefox()
            self.browser.implicitly_wait(3)
            self.url = '/crew-menu/crew-admin/rank-management/'

        def tearDown(self):
            self.browser.quit()

        def set_goToListPage(self):
            # self._setup_login_with_access
            # User Logs in
            self.browser.get(self.live_server_url) # .get is tells the browser to go to a new page
            # Type a user's user name in the field
            username_field = self.browser.find_element_by_name('username')
            username_field.send_keys('adgc')
            # Type a user's password in the field
            password_field = self.browser.find_element_by_name('password')
            password_field.send_keys('adgcadgc')
            # Click the login button
            login = self.browser.find_element_by_tag_name('button')
            login.click()
            time.sleep(2)
            # Server goes to the Rank Management List Page
            self.browser.get(self.live_server_url+self.url)
            time.sleep(2)
            # System checks the title of the current page if it is Rank Management
            self.assertIn('Rank Management', self.browser.title)

        def test_IsEmpty(self):
            # User Goes to the the Rank List Page
            self.set_goToListPage()
            time.sleep(1)
            # System checks the output if the table is empty
            tr = self.browser.find_elements_by_tag_name("tr")
            self.assertIn('No records found', tr[1].text)

假设您使用bash并且sencha现在是$ PATH,例如,将此添加到〜/ .bashrc

echo $PATH

你需要找到自己正确的道路。这应该可以解决问题。