我在和玩。在我的Mac上运行它没有任何问题,我可以通过在终端中输入fsl来启动它。
但是,我不知道如何在我们学校的HPC服务器上启动软件。通过SSH登录到学校服务器后,我像往常一样键入fsl,然后再输入
If 'fsl' is not a typo you can run the following command to lookup the package that contains the binary:
command-not-found fsl
-bash: fsl: command not found
然后,我导航到FSL安装目录(/data/apps/arc
我是fortran的新手,我正在尝试将其作为输出执行。
program write2file
implicit none
! open file
open (10, file='output_file.txt', status='unknown')
! write to file
write(10, *) 'Hello World!'
! close file
close(10)
end program write2file
我在Linux上运行它,并尝试使用此语句编译和执行输出,但不幸的是,我无法获得'output_file.
我的理解是linux中的所有命令都必须存在于$PATH上,即使对于最基本的命令也是如此。
> which cd
/bin/cd
> which ls
/bin/ls
但当我尝试which pushd时,令我惊讶的是,它又回来了:
/usr/bin/which: no pushd in (/bin:/usr/share/maven/bin:/usr/share/java/jdk1.8.0_131/bin:/usr/local/bin:/usr/bin:/usr/local/sbin)
pushd是“安装”和工作的。这对我对linux命令的理解提出了挑战。
有人能解释一下为什么会这样吗
我想自动化expect for passwd,但我没有安装的权限。但是如果我可以复制并粘贴expect源代码并执行.c files usingcc/gcc and generate the executable expect.
或
我是否可以从linux复制expect可执行文件,然后在其他地方使用它,比如在solaris、aix等?
这是/usr/bin/expect in my linux box中的expect:
[root@test]# file /usr/bin/expect
/usr/bin/expect: ELF 64-bit LSB executable, AMD x86-64
现在我有一个由DNK开发的so文件。我想在Linux中用C语言调用so文件。但它总是会提示:
[root@PCGiter Code]# gcc SoTest2.c -o SoTest2.exe -ldl
[root@PCGiter Code]# ./SoTest2.exe
Open Error:libcom_wuba_aes_ExecV3_1_0.so: cannot open shared object file: No such file or directory.