我已经使用 Debian 软件包安装了 App Inventor 2,并且这些说明。该软件是 32 位的,而我的电脑是 64 位的。
显然还需要 Oracle JRE for App Inventor,最后才能让它与 Firefox 一起工作。(我的 Java 版本验证在 Oracle 网站上有效,Firefox 可以正确打开jnlp
文件。)
但是,我无法aiStarter
使用在线模拟器。这似乎与 32-64 位冲突有关?我收到以下错误:
$ ./aiStarter
Bottle server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8004/
Hit Ctrl-C to quit.
Shutdown...
Traceback (most recent call last):
File "<string>", line 129, in <module>
File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/bottle", line 2389, in run
File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/bottle", line 2086, in run
File "/usr/lib/python2.7/wsgiref/simple_server.py", line 144, in make_server
return [stdout.getvalue()]
File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/SocketServer", line 419, in __init__
File "/usr/lib/python2.7/wsgiref/simple_server.py", line 48, in server_bind
HTTPServer.server_bind(self)
File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/BaseHTTPServer", line 108, in server_bind
File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/SocketServer", line 430, in server_bind
File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/socket", line 224, in meth
socket.error: [Errno 98] Address already in use
/usr/google/appinventor/commands-for-Appinventor/adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
我也读过这我虽然可能有所帮助,并尝试了以下方法来查看要安装哪些依赖项,但从我所看到的结果来看,没有任何运气:
$ dpkg-deb -I appinventor2-setup_2.3_all.deb
new debian package, version 2.0.
size 75112754 bytes: control archive=2310 bytes.
286 bytes, 10 lines control
14440 bytes, 123 lines md5sums
Package: appinventor2-setup
Version: 2.3
Architecture: all
Maintainer: Hal Abelson <[email protected]>
Installed-Size: 173563
Section: misc
Priority: optional
Description: Appinventor2-setup version 1.1
This software is used in conjunction with
MIT App Inventor. See appinventor.mit.edu
有谁经历过这种情况并能帮助我吗?
答案1
根据socket.error: [Errno 98] Address already in use
上面的错误日志输出的错误消息,问题在于某些东西已经绑定到8004
系统上的端口。
根据您netstat
在上面的评论中的输出,某个东西已经在localhost
(又名127.0.0.1
) 上的端口 8004 上监听,并且那个东西是aiStarter
。我猜应用程序已经在运行;它可能配置为在启动时加载或在安装后立即加载。也可能是这种情况,这是一个临时的事情,当您重新启动或注销时,您必须运行命令aiStarter
再次执行。
第二个问题是缺少很多库 - 包括 32 位版本的libstdc++
。我猜你会需要很多库,所以让我们继续安装build-essential
。这不仅仅会引入很多内容libstdc++
,但它可能有助于解决你将看到的大多数“缺少库”问题。