test.bas() 错误 23:找不到文件
test.bas() error 23: File not found
我正在尝试 运行 一个简单的 FreeBASIC 程序:
Print "Hello World"
然而,当我尝试 运行 它时,它给了我这些错误:
yamboy1@laptop:~$ fbc test.bas
test.bas() error 23: File not found, crt1.o
test.bas() error 23: File not found, crti.o
test.bas() error 23: File not found, crtn.o
ld: cannot find -lncurses
ld: cannot find -lm
ld: cannot find -ldl
ld: cannot find -lpthread
ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5/libgcc.a when searching for -lgcc
ld: cannot find -lgcc
ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5/libgcc_eh.a when searching for -lgcc_eh
ld: cannot find -lgcc_eh
ld: cannot find -lc
这与this post
不同
这似乎是 32 位/64 位不匹配,好像 ld 正在寻找 32 位 gcc 工具链。您是否偶然安装了 32 位 FreeBasic?
看来您使用的是 64 位计算机,所以如果是,请尝试从以下位置获取并安装 64 位版本:
https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux/FreeBASIC-1.05.0-linux-x86_64.tar.gz/download
缺少开发库您必须先安装开发库。
确保您下载的 FreeBASIC 版本正确
在 Shell 下键入
uname -a
如果是 32 位或 64 位,您可以在哪里看到 linux 版本
下载正确的 FreeBASIC 版本。
要安装对 Debian 和 Ubuntu 的所有依赖,请在 shell 下键入此命令:
sudo apt-get install gcc g++ libncurses5-dev libx11-dev libxext-dev libxpm-dev libxrandr-dev libxrender-dev
我正在尝试 运行 一个简单的 FreeBASIC 程序:
Print "Hello World"
然而,当我尝试 运行 它时,它给了我这些错误:
yamboy1@laptop:~$ fbc test.bas
test.bas() error 23: File not found, crt1.o
test.bas() error 23: File not found, crti.o
test.bas() error 23: File not found, crtn.o
ld: cannot find -lncurses
ld: cannot find -lm
ld: cannot find -ldl
ld: cannot find -lpthread
ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5/libgcc.a when searching for -lgcc
ld: cannot find -lgcc
ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5/libgcc_eh.a when searching for -lgcc_eh
ld: cannot find -lgcc_eh
ld: cannot find -lc
这与this post
不同这似乎是 32 位/64 位不匹配,好像 ld 正在寻找 32 位 gcc 工具链。您是否偶然安装了 32 位 FreeBasic?
看来您使用的是 64 位计算机,所以如果是,请尝试从以下位置获取并安装 64 位版本:
https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux/FreeBASIC-1.05.0-linux-x86_64.tar.gz/download
缺少开发库您必须先安装开发库。
确保您下载的 FreeBASIC 版本正确 在 Shell 下键入
uname -a
如果是 32 位或 64 位,您可以在哪里看到 linux 版本 下载正确的 FreeBASIC 版本。
要安装对 Debian 和 Ubuntu 的所有依赖,请在 shell 下键入此命令: