简体   繁体   English

无法为 Ubuntu 安装 LightTable

[英]Unable to install LightTable for Ubuntu

I got Ubuntu 14.04 and realy whant to try LightTable.我有 Ubuntu 14.04,真的很想尝试 LightTable。 But cant even install it.但是连安装都不行。 All troubles I got are about leiningen.我遇到的所有麻烦都与莱宁根有关。

I reproduced this steps just like manual said without any errors:我复制了这个步骤就像手册说的没有任何错误:

First install or update leiningen.

Download the lein script. For Windows, download lein.bat.
Place it on your $PATH where your shell can find it (eg. ~/bin).
Set it to be an executable (chmod a+x ~/bin/lein).
Run the Lein script (eg. "./lein" or "sh lein") without quotes.

After that, I have tried next steps:之后,我尝试了以下步骤:

git clone https://github.com/LightTable/LightTable.git
cd LightTable
bash linux_deps.sh

but the all I got is:但我得到的只是:

Please install leiningen before running this script.

If I run:如果我运行:

lein version 

I receive:我收到:

bash: /usr/bin/lein: No such file or directory

The result of ./lein is: ./lein 的结果是:

Leiningen is a tool for working with Clojure projects.

Several tasks are available:
check               Check syntax and warn on reflection.
classpath           Write the classpath of the current project to output-file.
clean               Remove all files from paths in project's clean-targets.
compile             Compile Clojure source into .class files.
deploy              Deploy jar and pom to remote repository.
deps                Show details about dependencies.
do                  Higher-order task to perform other tasks in succession.
help                Display a list of tasks or help for a given task or subtask.
install             Install current project to the local repository.
jar                 Package up all the project's files into a jar file.
javac               Compile Java source files.
new                 Generate scaffolding for a new project based on a template.
plugin              DEPRECATED. Please use the :user profile instead.
pom                 Write a pom.xml file to disk for Maven interoperability.
repl                Start a repl session either with the current project or standalone.
retest              Run only the test namespaces which failed last time around.
run                 Run the project's -main function.
search              Search remote maven repositories for matching jars.
show-profiles       List all available profiles or display one if given an argument.
test                Run the project's tests.
trampoline          Run a task without nesting the project's JVM inside Leiningen's.
uberjar             Package up the project files and all dependencies into a jar file.
update-in           Perform arbitrary transformations on your project map.
upgrade             Upgrade Leiningen to specified version or latest stable.
version             Print version for Leiningen and the current JVM.
with-profile        Apply the given task with the profile(s) specified.

Run `lein help $TASK` for details.

Global Options:
  -o             Run a task offline.
  -U             Run a task after forcing update of snapshots.
  -h, --help     Print this help.
  -v, --version  Print Leiningen's version.

See also: readme, faq, tutorial, news, sample, profiles, deploying, gpg, mixed-source, templates, and copying.

What I have done wrong?我做错了什么? What else should I do to became a LightTable user?我还应该做什么才能成为 LightTable 用户?

Do you have Java installed?你有安装Java吗? It's required for Leiningen, but not mentioned in the install directions on their main page . Leiningen 需要它,但在其主页上的安装说明中未提及。 They only mention it in their installation instructions on GitHub .他们只在GitHub 上的安装说明中提到它。 You'll also need to have cURL installed, but that's for LightTable itself, not Leiningen.您还需要安装 cURL,但这是用于 LightTable 本身,而不是 Leiningen。

I was just able to install and run LightBox on Ubuntu 14.04 after installing OpenJDK (Java 7 version), Leiningen, Git, and cURL, so hopefully you're just missing something like that.在安装 OpenJDK(Java 7 版本)、Leiningen、Git 和 cURL 后,我只能在 Ubuntu 14.04 上安装和运行 LightBox,所以希望你只是错过了这样的东西。

Well this part:那么这部分:

bash: /usr/bin/lein: No such file or directory

Is because it cannot find the command, is it located in that directory?是因为找不到命令,是不是在那个目录下? What did you add to the $PATH in your profile?您在个人资料中的 $PATH 中添加了什么? I am guessing but I think you need to correctly add it to your $PATH env.我在猜测,但我认为您需要将其正确添加到您的 $PATH 环境中。 If you run如果你跑

env

What does that display?那显示什么?

要从 ubuntu 32bit 或 64bit.do 中删除 lighttable,

sudo rm -r /opt/LightTable /usr/bin/lighttable

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM