在哪里安装 gpsbabel 以便它与 GPS::Babel perl 模块一起使用?
我很遗憾我不得不问这么简单的问题,但是应该在哪里安装 gpsbabel 才能与GPS::Babel perl 模块?我似乎无法找出合适的路径,希望其他能正常工作的人可以提供帮助。预先感谢您的帮助!
I'm sad that I have to ask a question this simple but where should gpsbabel be installed in order to work with the GPS::Babel perl module? I can't seem to figure out the appropriate path and am hoping someone else who has it working can help. Thanks in advance for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GPS::Babel Perl 模块使用 File::Which 来查找 gpsbabel 可执行文件。
您正在运行的“使用”GPS::Babel 的脚本/程序需要由用户运行,当调用 File::Which::which() 时,可以在该用户的操作系统中找到 gpsbabel 可执行文件 -依赖 PATH 环境变量。
例如,在 Linux 上安装 gpsbabel 会导致 gpsbabel 安装在 /usr/local/bin 中。由于 /usr/local/bin 在我的路径中,当我使用 GPS::Babel 调用 Perl 脚本时,File::Which:: 会在 /usr/local/bin 中找到 gpsbabel。
什么操作系统?你的 PATH 环境变量设置为什么?您确定 gpsbabel 可执行文件已正确安装,即您可以验证它安装的目录/文件夹吗?
我刚才下载/安装 gpsbabel 和 GPS::Babel 并编写一个快速的 hello world Perl 脚本来在 Linux 上使用 GPS::Babel 没有任何问题。
The GPS::Babel Perl module uses File::Which to find the gpsbabel executable.
The script/program you're running that "use"'s GPS::Babel needs to be run by a user that, when File::Which::which() is called, can find the gpsbabel executable in that user's OS-dependent PATH environment variable.
For example, installing gpsbabel on Linux results in gpsbabel being installed at /usr/local/bin. Since /usr/local/bin is in my path, when I invoke a Perl script use'ing GPS::Babel, File::Which::which finds gpsbabel in /usr/local/bin.
What OS? What's your PATH environment variable set to? Are you sure the gpsbabel executable was installed correctly, ie, can you verify the directory/folder it's installed in?
I had no issues downloading/installing gpsbabel and GPS::Babel just now and writing a quick hello world Perl script to use GPS::Babel, on Linux.