我为 Ubuntu 编写了一个小应用程序,它运行良好。我有兴趣为 Windows 交叉编译它。
我已经mingw32从存储库安装,它可以很好地编译简单文件。但是,我想为 Windows 编译的应用程序使用了一些特定于 UNIX 的机制——例如,它使用了sys/socket.h文件,而 mingw 编译器声称它找不到它。
一种解决方案是在 Windows 机器上安装 Cygwin,然后尝试使用Cygwin可执行文件从那里编译应用程序。不幸的是,我无法访问任何 Windows 机器,因为我没有该系统的副本。如果我能以某种方式在我的 Ubuntu 上使用 Cygwin(带有它的库和头文件)来编译一个 .exe 文件,那将是完美的。
存储库中没有包含它的包。谁能给我一些关于如何在 Ubuntu 上使用 Cygwin 的信息?
从源代码编译或从存储库安装的包性能是否有所不同?是否有可能,在编译过程中,该软件包将“更适应”(性能、稳定性)您的系统,如果它是在其上编译的?
我想编译 flvtool++,但它需要 boost-devel 库。
我尝试通过以下命令安装它:
sudo apt-get install boost-devel
Run Code Online (Sandbox Code Playgroud)
但我得到了错误:
E: Unable to locate package boost-devel
Run Code Online (Sandbox Code Playgroud)
还有其他方法可以编译 flvtool++ 源代码或任何 64 位二进制文件吗?
我正在尝试使用控制台运行我的 C++ 代码。我使用了头文件,conio.h就像我在 Windows 中使用 Turbo C++ IDE 时所做的那样,我在控制台中使用
g++ filename.cpp
Run Code Online (Sandbox Code Playgroud)
我已经安装了build-essentials 以前,但我仍然收到消息:
Run Code Online (Sandbox Code Playgroud)conio.h file : No such file or directory
我摸索了一下,了解到 Windows 和 Linux 的头文件不同,但我仍在寻找一种方法来获取基本和中级编码实践所需的所有头文件。
对此的帮助表示赞赏。请记住,我对 Ubuntu 很陌生。
我对 Ubuntu 很陌生,我发现安装程序/库很困难。如何使用终端在 Ubuntu 中安装和构建 PortAudio?
正如问题告诉我应该如何在 ubuntu 14.04 中安装jsonccpp。我已经下载了 jsoncpp-src-0.5.0.tar.gz 表单sourceforge。然后我使用 sudo 打开 nautilus 并复制、粘贴和提取 tar.gz 文件/opt。我已经安装了 cmake 并使用此代码按照 jsoncpp github 中的建议进行安装
cmake -DCMAKE_BUILD_TYPE=debug -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF \
-DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles"
Run Code Online (Sandbox Code Playgroud)
但它给出了这个错误
CMake Error: The source directory "/opt/jsoncpp-src-0.5.0" does not
appear to contain CMakeLists.txt. Specify --help for usage, or press
the help button on the CMake GUI.
Run Code Online (Sandbox Code Playgroud)
我在 Ubuntu 14.04 上,尝试安装最新版本的 Avogadro(因为软件中心中的版本显示问题),当我到达时make,它会打印所有这些错误:
[ 98%] Linking CXX shared module ../../../lib/animationextension.so
[ 98%] Linking CXX shared module ../../../lib/povrayextension.so
In file included from /usr/local/include/eigen2/Eigen/Core:102:0,
from /home/jake/src/avogadro/libavogadro/src/extensions/vrmldialog.h:33,
from /home/jake/src/avogadro/libavogadro/src/extensions/vrmldialog.cpp:25:
/usr/local/include/eigen2/Eigen/src/Core/util/Memory.h: In function ‘Integer Eigen::ei_alignmentOffset(const Scalar*, Integer)’:
/usr/local/include/eigen2/Eigen/src/Core/util/Memory.h:232:51: warning: typedef ‘Packet’ locally defined but not used [-Wunused-local-typedefs]
typedef typename ei_packet_traits<Scalar>::type Packet;
^
In file included from /usr/local/include/eigen2/Eigen/Core:102:0,
from /home/jake/build/avogadro/libavogadro/src/extensions/../../../../../src/avogadro/libavogadro/src/extensions/vrmldialog.h:33,
from /home/jake/build/avogadro/libavogadro/src/extensions/../../../../../src/avogadro/libavogadro/src/extensions/vrmlextension.h:28,
from /home/jake/build/avogadro/libavogadro/src/extensions/moc_vrmlextension.cxx:9:
/usr/local/include/eigen2/Eigen/src/Core/util/Memory.h: In function ‘Integer Eigen::ei_alignmentOffset(const Scalar*, Integer)’:
/usr/local/include/eigen2/Eigen/src/Core/util/Memory.h:232:51: warning: typedef ‘Packet’ locally defined but not used [-Wunused-local-typedefs] …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 Ubuntu 14.04 上编译 php 5.3.29。我收到一个错误 -configure: error: jpeglib.h not found.
这是我的 options.sh :
#!/bin/bash
# You can override config options very easily.
# Just create a custom options file; it may be version specific:
# - custom-options.sh
# - custom-options-5.sh
# - custom-options-5.3.sh
# - custom-options-5.3.1.sh
#
# Don't touch this file here - it would prevent you to just "svn up"
# your phpfarm source code.
version=$1
vmajor=$2
vminor=$3
vpatch=$4
#gcov='--enable-gcov'
configoptions="\
--enable-bcmath \
--with-mysqli \
--with-png …Run Code Online (Sandbox Code Playgroud) 在运行 Paragon UFSD 驱动程序的 install.sh Skript 时,我收到错误消息:
ERROR: Kernel configuration is invalid.";
\include/generated/autoconf.h or include/config/auto.conf are missing."$
Run 'make oldconfig && make prepare' on kernel src to fix it."; \
Run Code Online (Sandbox Code Playgroud)
我如何运行“make oldconfig && make prepare”,这有意义吗?
我知道这个问题是在 NVIDIA 驱动程序的上下文中被问到的,但它是通过建议其他安装 NVIDIA 的方法而不是告诉如何运行 make 命令来回答的(安装 NVIDIA 驱动程序:Error Run 'make oldconfig && make prepare' on kernel src to fix它。”)。在另一个问题中,问题已解决,但提出问题的人不记得是如何解决的(“错误:内核配置无效”)。
我现在尝试了几天来安装 Paragon-147-PRE_NTFS_Linux_9.4_Pro UFSD 驱动程序,以获得完整的读写 NTFS 和 HFS+ 文件系统支持。驱动程序正式支持 Ubuntu 16.04LTS。在处理完我的旧 Linux 安装后,我使用全新安装的 Ubuntu 16.04.2LTS(从 UBUNTU 网站下载),除了标准安装之外什么都没有,尽管我在三重引导系统(Windows7、elementary、Ubuntu)上运行它,如果这很重要。
我安装了 build-essentials、dkms …
当我尝试通过以下方式打开 metasploit 时
msfconsole
Run Code Online (Sandbox Code Playgroud)
它显示了一个错误
rbenv: version `2.5.1' is not installed (set by /opt/metasploit-framework/.ruby-version)
Run Code Online (Sandbox Code Playgroud)
我试过
rbenv install rbx-2.5.1
Run Code Online (Sandbox Code Playgroud)
它的显示
BUILD FAILED (Ubuntu 16.04 using ruby-build 20160602-19-g0c35180)
Inspect or clean up the working tree at /tmp/ruby-build.20180421085159.19307
Results logged to /tmp/ruby-build.20180421085159.19307.log
Last 10 log lines:
Updating files in vendor/cache
Bundle complete! 5 Gemfile dependencies, 11 gems now installed.
Bundled gems are installed into `./vendor/bundle`
Checking gcc: found
Checking g++: found
Checking bison:./configure:1430:in ``': No such file or directory - bison (Errno::ENOENT)
from …Run Code Online (Sandbox Code Playgroud)