在Linux上从源安装软件和文件名扩展

时间:2016-03-01 14:04:52

标签: linux bash shell filenames

从源代码安装Ubuntu上的一些软件,with some shell script,我最终得到以下错误..

vagrant@precise64:~/EventStore-oss-v3.5.0$  bash -x ./scripts/build-js1/build-js1-linux.sh werror=no
 ...
+ make x64.release werror=no
make[1]: Entering directory `/home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/v8/out'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/v8/out'
+ popd
+ local outputDir=/home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/../../src/libs/x64/ubuntu-12.04
+ [[ -d /home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/../../src/libs/x64/ubuntu-12.04 ]]
+ pushd /home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/../../src/EventStore.Projections.v8Integration/
+ local outputObj=/home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/../../src/libs/x64/ubuntu-12.04/libjs1.so
+ g++ -I '/home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/v8/include *.cpp' -o /home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/../../src/libs/x64/ubuntu-12.04/libjs1.so -fPIC -shared -std=c++0x -lstdc++ -Wl,--start-group '/home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/v8/out/x64.release/obj.target/tools/gyp/libv8_{base.x64,nosnapshot.x64}.a' '/home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/v8/out/x64.release/obj.target/third_party/icu/libicu{i18n,uc,data}.a' -Wl,--end-group -lrt -lpthread
g++: error: /home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/v8/out/x64.release/obj.target/tools/gyp/libv8_{base.x64,nosnapshot.x64}.a: No such file or directory
g++: error: /home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/v8/out/x64.release/obj.target/third_party/icu/libicu{i18n,uc,data}.a: No such file or directory
vagrant@precise64:~/EventStore-oss-v3.5.0$ 

虽然如果我试图查看这些文件是否存在,它们会:

vagrant@precise64:~/EventStore-oss-v3.5.0$ ls -la /home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/v8/out/x64.release/obj.target/tools/gyp/libv8_{base.x64,nosnapshot.x64}.a
-rw-rw-r-- 1 vagrant vagrant 1162178 Mar  1 13:24 /home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/v8/out/x64.release/obj.target/tools/gyp/libv8_base.x64.a
-rw-rw-r-- 1 vagrant vagrant    3580 Mar  1 13:25 /home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/v8/out/x64.release/obj.target/tools/gyp/libv8_nosnapshot.x64.a

vagrant@precise64:~/EventStore-oss-v3.5.0$ ls -la  /home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/v8/out/x64.release/obj.target/third_party/icu/libicu{i18n,uc,data}.a
-rw-rw-r-- 1 vagrant vagrant    338 Mar  1 13:29 /home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/v8/out/x64.release/obj.target/third_party/icu/libicudata.a
-rw-rw-r-- 1 vagrant vagrant 314000 Mar  1 13:27 /home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/v8/out/x64.release/obj.target/third_party/icu/libicui18n.a
-rw-rw-r-- 1 vagrant vagrant 147746 Mar  1 13:29 /home/vagrant/EventStore-oss-v3.5.0/scripts/build-js1/v8/out/x64.release/obj.target/third_party/icu/libicuuc.a

我缺少什么明显的linux原则......?

在脚本中使用以及在命令行上使用时,文件名扩展是否可以被区别对待?

0 个答案:

没有答案