Archived messages from: gitter.im/red/red/Chinese from year: 2020

liangliangsun
02:24Red 还要多少年能1.0 -_-||,谁知道 .
qtxie
11:17这个没人知道吧。。。

alexkuang0
01:16macOS Catalina 运行不了。想自己编译发现编译依赖的rebol也提示bad CPU type in executable
bitbegin
01:2010.15的不支持了
01:23要等64bit的工具链

viest
06:23red 是不是发了币之后,就没有之后了
qtxie
23:07应该还有

dalecgu
19:00[![image.png](https://files.gitter.im/red/red/Chinese/86ff/thumb/image.png)](https://files.gitter.im/red/red/Chinese/86ff/image.png)
19:05windows下编译tests包里的例子,drop-list在选择时会崩溃,请问是什么原因?应该怎么去调试呢?

bitbegin
01:42用 -r -d 编译,然后可以看到crashed 时候的调用栈情况
dalecgu
06:24[![image.png](https://files.gitter.im/red/red/Chinese/FG7M/thumb/image.png)](https://files.gitter.im/red/red/Chinese/FG7M/image.png)
06:24@bitbegin 学到了~
09:56用最新的dailybuild编译是ok的

flw-cn
05:17现在有 catalina 可用的 red 吗?
05:17catalina 不支持 32 位程序
bitbegin
07:01还没有
flw-cn
08:30哦,可以自己编译出来吗?
bitbegin
08:30不能的
flw-cn
08:30好惨。
08:31我好像永远地失去了 red
bitbegin
08:31只能等了
flw-cn
08:31Linux 好像还可以吧,不行就先用 Docker 了。
bitbegin
08:32那可以的
flw-cn
08:33感谢!
08:33我试试 Docker
08:37$ ./red
zsh: no such file or directory: ./red
08:37为什么会报这个错。
08:37核对了一下,sha 是对的
08:37$ sha256sum red
5a8fa68c2fd5c84c855e26369391d825a13d8ac456ac534b1569139c65880a92 red
bitbegin
08:37chmod +x ?
flw-cn
08:37加过了
08:38
$ ll
total 1.5M
-rwxrwxr-x 1 flw flw 1.5M Sep  7 16:34 red
bitbegin
08:38下载的是不是linux下的镜像?
flw-cn
08:39是的
08:39[![image.png](https://files.gitter.im/5673b28a16b6c7089cbf2657/ndwR/thumb/image.png)](https://files.gitter.im/5673b28a16b6c7089cbf2657/ndwR/image.png)
bitbegin
08:39哦,那可能你没有按照i386的架构
flw-cn
08:40是不是缺什么东西
08:40哦,看到了
08:40下面有说明
08:45好了,感谢!
08:461.5M,真牛啊
08:48
$ ./red --cli
/home/flw/.red/console-2020-9-5-14505: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
08:48gtk 没有还不行
bitbegin
08:48sudo apt install at-spi2-core #for Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files


sudo apt-get install libgtk-3-bin:i386
sudo apt-get install librsvg2-common:i386
sudo apt install libcanberra-gtk-module:i386 libcanberra-gtk3-module:i386
sudo apt install at-spi2-core:i386
08:48gtk 依赖的有点多
flw-cn
08:49嗯,我记得以前的版本是不依赖 gtk 的
bitbegin
08:49那要自己编译一个了
flw-cn
08:49嗯,我研究研究,现在用到了 GTK 的哪些东西?

liuxingyulee
20:50请问下我写了段red代码, debug的时候报错,
"** Script Error: foreach does not allow map! for its series argument
*** Where: do
*** Stack: do-file "
20:51这段代码是修改来自之前可用的代码, 这段应该是可以用的
21:17在win上编译到exe文件时,报错
*** near: [load-json config-data]
qtxie
23:00> 请问下我写了段red代码, debug的时候报错,
> "** Script Error: foreach does not allow map! for its series argument
> *** Where: do
> *** Stack: do-file "

你用的是nightly build吗?
23:00
>> m: #(a: 1 b: 2)
== #(
    a: 1
    b: 2
)
>> foreach [k v] m [print [k v]]
a 1
b 2

liuxingyulee
00:28@qtxie 你好, 请问怎么分别是否是 nightly build?
00:31
>> m: #(a: 1 b: 2)
== #(
    a: 1
    b: 2
)
>> foreach [k v] m [print [k v]]
*** Script Error: foreach does not allow map! for its series argument
*** Where: foreach
*** Stack:
00:32看起来像是
00:32遇到foreach就出错了
00:52请问是我是用的red版本的问题吗
qtxie
22:54有个命令可以查看的,我忘记了。应该是你的版本太旧了。这是最新版的连接:https://static.red-lang.org/dl/auto/win/red-latest.exe
22:55如果你能打开https://www.red-lang.org/p/download.html ,选择 下载 Automated builds, master branch 里面的Red。

liuxingyulee
16:53@qtxie 谢谢
17:27我试了下, automated builds确实可以执行, 我再进一步看看能否编译.
21:55也编译成功了, @qtxie 十分感谢.