问题标签 [ubuntu-15.10]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ubuntu - 如何在 Ubuntu 15.10 上更改 LLVM 版本?
我目前已经LLVM 3.6.2
安装在 Ubuntu 15.10 上。但我想使用LLVM 3.7
. 我尝试按照http://llvm.org/apt/上的步骤进行操作,但即使安装成功,版本仍然相同。
有什么方法可以更改当前正在使用的 LLVM 版本?
另外,要注意的另一件事LLVM 3.7-dev
是不可安装
The following packages have unmet dependencies:
llvm-3.7-dev : Depends: libjsoncpp0 (>= 0.6.0~rc2) but it is not installable
E: Unable to correct problems, you have held broken packages.
有什么建议么?
python - Pip3 安装模块在哪里?
- Ubuntu 15.10
- Python 3.4.3+
- Django 1.8.7
当我尝试import django
在 python3 解释器中,它说ImportError: No module named 'django'
. 我知道安装了 Django 1.8.7,因为我可以通过django-admin --version
在终端命令行中获取版本#。
python3 manage.py runserver
当我在 Django 项目目录中尝试时,出现此错误:
所以再次(如预期的那样),它不在 Python 可以找到它的路径中。
我看了看,/usr/local/lib/python3.4/dist-packages
但它是一个空目录。
我做了一个whereis django
& whereis Django
,这只是给了我一行 django:
或Django:
分别没有路径列表。
我尝试用谷歌搜索如何找到 Django 的路径,但这并没有发现任何有用的东西。
我找到并检查了 django-admin 文件本身的代码,但它没有任何指示 Django 安装到的位置。奇怪的是,python 文件导入了 django 模块并且它可以工作,即使解释器和 Django 项目文件看不到 django 模块。所以它在 python 路径上,但它也不是?!?我不知道,也找不到。
在以前的 Ubuntu(或任何其他操作系统)上,我从来没有遇到过这样的问题。有没有人知道我如何找到 Django 的安装位置?实际上,我找不到通过 pip3 安装的任何模块。我已经尝试了一个多小时来解决这个问题,我感到非常困惑和沮丧。
fpga - Digilent高手崩溃
当我在终端上启动它djtgcfg enum
以读取我的板(Basys 2)时,它将返回此错误:
djtgcfg: pthread_mutex_unlock.c:87: __pthread_mutex_unlock_usercnt: Assertio ntype == PTHREAD_MUTEX_ERRORCHECK_NP' 失败。已创建核心转储
这是什么意思?我没有想法。我的操作系统是 Ubuntu 15.10 64 位。
swift - 无法在 Ubuntu 中安装 Swift
您好我正在尝试在 Ubuntu(Ubuntu 15.10)上安装 Swift。我在swift.org上遵循了 Apple 的指南。但是在我执行以下命令时执行了所有步骤之后
它返回错误说
我用了
这是我的目录路径 http://pastebin.com/Z1aNiDQM
请帮我完成安装。
python - 在 Ubuntu 15.10 中无法终止使用 python 创建的 sudo 进程
我刚刚更新到 Ubuntu 15.10,突然在 Python 2.7 中我无法终止我在root时创建的进程。例如,这不会终止 tcpdump:
发生了什么?它适用于以前的版本。
php - 404 Page Not Found. 你请求的页面在 ubuntu 中没有找到
我遇到了我不明白的问题。我在 Windows 上的 codeigniter 上工作了 5 个月。现在我选择了 ubuntu 平台。我有一个名为 test 的项目,我把它放在我的 webroot 中。如果我在 Windows 中运行它,它可以工作,但同样的事情在 ubuntu 中不起作用。
它显示 404 Page Not Found 找不到您请求的页面。我检查了我的配置文件,没问题。这是网址http://localhost/test/index.php/test_con
。我还检查了在 ubuntu 中是否成功安装了 codeigniter。
每当我写这个 urlhttp://localhost/test
时,它都会显示 codeigniter 的欢迎消息。
现在我的问题是你们,是否有任何其他约定可以在 ubuntu 中运行 codeigniter。
c++ - OpenGL program isn't rendering on Ubuntu with VirtualBox
I'm starting to learn OpenGL and I decided to use Ubuntu 15.10 on a VirtualBox to do this. I installed the packages mesa-common-dev (gl.h), libglew-dev (glew.h) and libglfw3-dev (glfw3.h) and following this tutorial I came up with this code:
I'm compiling it as g++ test.cpp -o test -lglfw -lGLEW -lGL
with no errors.
But, when I execute the program, it opens the window with a black screen without rendering the triangle. I tried to execute this code that someone posted on the comments of the tutorial but I got the same black screen and no polygons rendered. Is the problem on the code? Did I miss something when setting OpenGL up? Are the compiling parameters correct?
python - 在 Python 中使用“fopen”函数时出现“权限被拒绝”错误
我有以下代码,我从 localhost 运行它:
req.conf["inf_path"]
是/opt/fp/trunk/analysis/2/
,我收到权限错误。我使用的是 Ubuntu 操作系统。我怎么解决这个问题?
c - 如何在 Ubuntu 15 上修复 libudev 的链接器错误
我已经安装了libudev-dev
,我可以看到该文件/usr/lib/x86_64-linux-gnu/libudev.so
,但是当我运行时出现gcc -Wall -ludev -o test test.c
以下错误..
我通常不运行 ubuntu,但相同的代码适用于我的 fedora(稍旧版本的 libudev)以及运行 wheezy(旧版本的 libudev)的 pi。