I am trying to install ming_w64 using msys2. I used the following command to install it:
pacman -S mingw-w64-x86_64-toolchain
After installing compiling gives the following error:
$ g++ test.cpp
g++.exe: fatal error: cannot execute 'cc1plus': CreateProcess: No such file or directory
compilation terminated.
After reinstalling ming_w64 this is shown:
:: Proceed with installation? [Y/n]
(19/19) checking keys in keyring [##################################] 100%
(19/19) checking package integrity [##################################] 100%
(19/19) loading package files [##################################] 100%
(19/19) checking for file conflicts [##################################] 100%
(19/19) checking available disk space [##################################] 100%
warning: could not get file information for mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/cc1.exe
warning: could not get file information for mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/cc1plus.exe
warning: could not get file information for mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/lto1.exe
warning: could not get file information for mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/gnat1.exe
warning: could not get file information for mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/f951.exe
warning: could not get file information for mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/cc1obj.exe
warning: could not get file information for mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/cc1objplus.exe
Even after reinstalling I am unable to find cc1plus.exe in mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0
How do I fix this?
Thanks to HolyBlackCat I solved it.
It was Windows Defender which was deleting those files. Excluding that folder fixed it.
Related
My brothers compiled spec2006. I want to recompile it in my directory. But the iso file of spec2006 has not been found. I copied their compiled spec2006 to my directory, how should I recompile it?
When I execute uninstall.sh, it will appear
SPEC cpu2006 Tools Uninstaller
Top of cpu2006 tree is '/home/yu/workspace/benchmarks/spec2006'
About to remove tools installation from "/home/yu/workspace/benchmarks/spec2006".
Is this the desired behavior?
Please enter 'yes' or 'no'.
yes
Top of SPEC benchmark tree is '/home/yu/workspace/benchmarks/spec2006'
Some important environment variables are missing! Please source
/home/yu/workspace/benchmarks/spec2006/shrc before running this program.
Removing previous tools installation
Error un-relocating Perl tools. The next installation will fix them up.
When I execute install.sh, it will appear
SPEC CPU2006 Installation
Top of the CPU2006 tree is '/home/yu/workspace/benchmarks/spec2006'
There appears to be only one valid toolset:
linux-redhat62-ia32 For x86-based Linux systems with GLIBC 2.1.3+
tail: cannot open '+2' for reading: No such file or directory
==> /home/yu/workspace/benchmarks/spec2006/tools/bin/linux-redhat62-ia32/description <==
For x86-based Linux systems with GLIBC 2.1.3+
Built on RedHat 6.2 with gcc 2.95.3
Use this? (y/n)
y
Checking the integrity of your source tree...
/home/yu/workspace/benchmarks/spec2006/tools/bin/linux-redhat62-ia32/specmd5sum: ATTENTION_DO_NOT_USE_THIS_KIT_FOR_ANYTHING_PUBLIC_FIELD_TEST_LICENSE_NOTICE: No such file or directory
/home/yu/workspace/benchmarks/spec2006/tools/bin/linux-redhat62-ia32/specmd5sum: benchspec/CPU2006/465.tonto/src/slatershellvec.use: No such file or directory
/home/yu/workspace/benchmarks/spec2006/tools/bin/linux-redhat62-ia32/specmd5sum: bin/specperldoc: No such file or directory
/home/yu/workspace/benchmarks/spec2006/tools/bin/linux-redhat62-ia32/specmd5sum: WARNING: 3 of 10664 listed files could not be read
/home/yu/workspace/benchmarks/spec2006/tools/bin/linux-redhat62-ia32/specmd5sum: WARNING: 4 of 10664 file sizes did NOT match
ATTENTION_DO_NOT_USE_THIS_KIT_FOR_ANYTHING_PUBLIC_FIELD_TEST_LICENSE_NOTICE: FAILED open or read
benchspec/CPU2006/465.tonto/src/slatershellvec.use: FAILED open or read
benchspec/CPU2006/483.xalancbmk/src/ElemNumber.cpp: FAILED size mismatch
benchspec/CPU2006/483.xalancbmk/src/FormatterToHTML.cpp: FAILED size mismatch
benchspec/CPU2006/483.xalancbmk/src/XalanDOMString.cpp: FAILED size mismatch
benchspec/CPU2006/483.xalancbmk/src/XalanExe.cpp: FAILED size mismatch
bin/specperldoc: FAILED open or read
Package integrity check failed.
Unpacking binary tools for linux-redhat62-ia32...
Checking the integrity of your binary tools...
Checksums are all okay.
Top of SPEC benchmark tree is '/home/yu/workspace/benchmarks/spec2006'
Everything looks okay. cd to /home/yu/workspace/benchmarks/spec2006,
source the shrc file and have at it!
What is shown above is Everything looks okay.
When I re-execute install.sh, the above message will appear again, and the error has not disappeared.
And I found that these files exist.
/home/yu/workspace/benchmarks/spec2006/tools/bin/linux-redhat62-ia32/specmd5sum
bin/specperldoc
What should I do? thank you all
I tried to install R package "RMySQL" on the R server.
Install.packages('RMySQL', type='source')
But there is an error message:
Installing package into ‘/data/rstudio5/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/RMySQL_0.9-3.tar.gz'
Content type 'application/x-gzip' length 165363 bytes (161 Kb)
opened URL
downloaded 161 Kb
* installing *source* package ‘RMySQL’ ...
** package ‘RMySQL’ successfully unpacked and MD5 sums checked
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
ERROR: configuration failed for package ‘RMySQL’
* removing ‘/data/rstudio5/R/x86_64-pc-linux-gnu-library/3.0/RMySQL’
Warning in install.packages :
installation of package ‘RMySQL’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpoOnKGL/downloaded_packages’
When I try to find the config.log on PUTTY:
less config.log
It says no such file or directory.
Where is the config.log? and how can I check it? There are some related topics on Google but not feasible in this case.
http://ubuntuforums.org/showthread.php?t=1441752
There is usually a ./build directory off of where configure is sitting. Mine was there.
In your case that should be
/tmp/RtmpoOnKGL/downloaded_packages/build
I hope that helps.
I had the inspiration to start messing around with Erlang and I am having problems installing it... I am using Linux Mint 16 (petra). I installed the dependencies, and then downloaded otp_src_17.1.tar.gz and ran 'tar -zxf otp_src_17.1.tar.gz' I then ran ./configure which gave me some errors that made it impossible to run make.
These are the errors I'm getting (actually what I did was I did ./configure > configure.txt to get all the lines it prints as it configures, and it conveniently still printed to the console everything that has errors - neat)
configure: WARNING: No odbc library found skipping odbc
configure: WARNING: "ODBC library - header check failed"
configure: WARNING: "ODBC library - link check failed"
rm: remove write-protected regular file './CONF_INFO'?
configure: WARNING: No GLU headers found, wx will NOT be usable
/home/core/Desktop/otp_src_17.1/lib/wx/./configure: line 5195: wx-config: command not found
/home/core/Desktop/otp_src_17.1/lib/wx/./configure: line 5893: ./CONF_INFO: Permission denied
configure: WARNING:
wxWidgets must be installed on your system.
Please check that wx-config is in path, the directory
where wxWidgets libraries are installed (returned by
'wx-config --libs' or 'wx-config --static --libs' command)
is in LD_LIBRARY_PATH or equivalent variable and
wxWidgets version is 2.8.4 or above.
rm: remove write-protected regular file 'doc/CONF_INFO'?
/home/core/Desktop/otp_src_17.1/erts/configure: line 6466: doc/CONF_INFO: Permission denied
configure: WARNING: No 'xsltproc' command found: the documentation cannot be built
/home/core/Desktop/otp_src_17.1/erts/configure: line 6513: doc/CONF_INFO: Permission denied
configure: WARNING: No 'fop' command found: going to generate placeholder PDF files
configure: error: No curses library functions found
configure: error: /bin/bash '/home/core/Desktop/otp_src_17.1/erts/configure' failed for erts
The thing is - I know that I have the ncurses library, as evidenced by the fact that when I do "sudo apt-get install ncurses-base ncurses-bin" it says:
Reading package lists... Done
Building dependency tree
Reading state information... Done
ncurses-base is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
When I run "locate ncurses" it gives me the following:
/lib/i386-linux-gnu/libncurses.so.5
/lib/i386-linux-gnu/libncurses.so.5.9
/lib/x86_64-linux-gnu/libncurses.so.5
/lib/x86_64-linux-gnu/libncurses.so.5.9
/lib/x86_64-linux-gnu/libncursesw.so.5
/lib/x86_64-linux-gnu/libncursesw.so.5.9
/usr/bin/ncurses5-config
/usr/bin/ncursesw5-config
/usr/lib/vlc/plugins/gui/libncurses_plugin.so
/usr/share/doc/libncurses5
/usr/share/doc/libncursesw5
/usr/share/doc/ncurses-base
/usr/share/doc/ncurses-bin
/usr/share/doc/ncurses-base/changelog.Debian.gz
/usr/share/doc/ncurses-base/copyright
/usr/share/doc/ncurses-bin/FAQ
/usr/share/doc/ncurses-bin/changelog.Debian.gz
/usr/share/doc/ncurses-bin/copyright
/usr/share/lintian/overrides/ncurses-base
/usr/share/man/man1/ncurses5-config.1.gz
/usr/share/man/man1/ncursesw5-config.1.gz
/var/cache/apt/archives/libncurses5_5.9+20130608-1ubuntu1_i386.deb
/var/lib/dpkg/info/libncurses5:amd64.list
/var/lib/dpkg/info/libncurses5:amd64.md5sums
/var/lib/dpkg/info/libncurses5:amd64.postinst
/var/lib/dpkg/info/libncurses5:amd64.postrm
/var/lib/dpkg/info/libncurses5:amd64.shlibs
/var/lib/dpkg/info/libncurses5:amd64.symbols
/var/lib/dpkg/info/libncurses5:i386.list
/var/lib/dpkg/info/libncurses5:i386.md5sums
/var/lib/dpkg/info/libncurses5:i386.postinst
/var/lib/dpkg/info/libncurses5:i386.postrm
/var/lib/dpkg/info/libncurses5:i386.shlibs
/var/lib/dpkg/info/libncurses5:i386.symbols
/var/lib/dpkg/info/libncursesw5:amd64.list
/var/lib/dpkg/info/libncursesw5:amd64.md5sums
/var/lib/dpkg/info/libncursesw5:amd64.postinst
/var/lib/dpkg/info/libncursesw5:amd64.postrm
/var/lib/dpkg/info/libncursesw5:amd64.shlibs
/var/lib/dpkg/info/libncursesw5:amd64.symbols
/var/lib/dpkg/info/ncurses-base.conffiles
/var/lib/dpkg/info/ncurses-base.list
/var/lib/dpkg/info/ncurses-base.md5sums
/var/lib/dpkg/info/ncurses-bin.list
/var/lib/dpkg/info/ncurses-bin.md5sums
I am at a loss as to where to proceed. Thanks for any help
I believe you need to install ncurses-dev
'sudo yum install ncurses-devel.x86_64' prior to running ./configure worked just fine for me. Fedora 21 x64, btw.
After I extracted the tar, the documentation was in '/opt_src_{version}/HOWTO/INSTALL.md. The contents of which states:
Required Utilities
These are the tools you need in order to unpack and build Erlang/OTP.
WARNING: Please have a look at the [Known platform issues][] chapter
before you start.
Unpacking
GNU unzip, or a modern uncompress.
A TAR program that understands the GNU TAR format for long filenames.
Building
GNU make
Compiler -- GNU C Compiler, gcc or the C compiler frontend for LLVM, clang.
Perl 5
GNU m4 -- If HiPE (native code) support is enabled. HiPE can be
disabled using --disable-hipe
ncurses, termcap, or termlib -- The development headers and
libraries are needed, often known as ncurses-devel. Use
--without-termcap to build without any of these libraries. Note that
in this case only the old shell (without any line editing) can be used.
sed -- Stream Editor for basic text transformation.
ncurses just happened to be the only required package I didn't have installed on this development VM. So your mileage may vary.
This was the output of 'locate ncurses' after I installed the ncurses lib:
/usr/lib64/libncurses++.so.5
/usr/lib64/libncurses++.so.5.9
/usr/lib64/libncurses++w.so.5
/usr/lib64/libncurses++w.so.5.9
/usr/lib64/libncurses.so.5
/usr/lib64/libncurses.so.5.9
/usr/lib64/libncursesw.so.5
/usr/lib64/libncursesw.so.5.9
/usr/share/doc/ncurses
/usr/share/doc/ncurses-base
/usr/share/doc/ncurses/ANNOUNCE
/usr/share/doc/ncurses/AUTHORS
/usr/share/doc/ncurses/NEWS.bz2
/usr/share/doc/ncurses/README
/usr/share/doc/ncurses/TO-DO
/usr/share/doc/ncurses-base/README
/usr/share/licenses/ncurses-base
/usr/share/licenses/ncurses-base/COPYING
So I'd say the OP had a corrupt / bad ncurses install. I'm just posting this here because this was the #1 Google result I got when I was too lazy to RTFD.
One alternative is using the option "--without-termcap"
otp_src_18.0/configure file says:
--without-termcap do not use any termcap libraries
(ncurses,curses,termcap,termlib)
./configure --prefix=/home/username/erlang/18.0 --without-termcap
Set your PATH variable as shown below.
export PATH=$PATH=/home/username/erlang/18.0/bin
Not sure about implications though. :)
Hope this helps someone.
Upon a fresh install of the haskell-platform (via homebrew) (GHC x64 7.6.3) on OSX 10.9.2 I receive the following warnings when I run ghc-pkg check (see below)
Warning: haddock-interfaces: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/ghc-mod-3.1.7/html/ghc-mod.haddock doesn't exist or isn't a file
Warning: haddock-html: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/ghc-mod-3.1.7/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/hlint-1.8.59/html/hlint.haddock doesn't exist or isn't a file
Warning: haddock-html: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/hlint-1.8.59/html doesn't exist or isn't a directory
Warning: haddock-html: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/mtl-2.1.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/transformers-0.3.0.0/html/transformers.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/transformers-0.3.0.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/case-insensitive-1.0.0.1/html/case-insensitive.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/case-insensitive-1.0.0.1/html doesn't exist or isn't a directory
Per the docs:
ghc-pkg check
Check the consistency of package depenencies and list broken packages.
Accepts the --simple-output flag.
I attempt to run the following command to generate haddock documentation to no avail:
sudo cabal install --reinstall --force-reinstalls --enable-documentation
The command was from a similar question a user had on the haskell mailing list.
http://www.haskell.org/pipermail/glasgow-haskell-users/2012-February/021780.html
How do I appease ghc-pkg check and remove these warnings?
CAVEAT: When I say "fresh install" I mean I have installed the Haskell-platform from scratch, and installed globally cabal-1.18.0.3and added cabal's bin directory to my path.
Those haddock warnings are annoying, but they don't cause any problems, AFAIK. I think the warnings were fixed in Cabal 1.18. I don't see them any more.
EDIT: OK, so we need to follow kosmikus's suggestion...
mv ~/.cabal ~/.cabal.SAVE
cabal update
This will create the file ~/.cabal/config. You can edit this file if you wish.
Now try building something and see if the problem is gone.
I am trying to use libnl 3 (http://www.infradead.org/~tgr/libnl/) under Ubuntu to use netlink in order to get some information from the IPv6 Neighbour Cache.
I am including a bunch of headers for this lib, but gcc already fails for the first one:
#include <libnl3/netlink/netlink.h>
There is no "main header", like libnl.h.
>$ gcc netlink_test.c
In file included from netlink_test.c:11:0:
/usr/include/libnl3/netlink/netlink.h:24:36: fatal error: netlink/netlink-compat.h: No such file or directory
compilation terminated.
The file netlink.h includes "netlink/netlink-compat.h". Unfortunately, there is no "/usr/include/netlink/" folder. There is only "/usr/include/libnl3/netlink/"
Including "netlink/netlink.h" thus gives me:
netlink_test.c:10:29: fatal error: netlink/netlink.h: No such file or directory
compilation terminated.
I have installed the following packages under Ubuntu 12.04:
libnl-3-200
libnl-3-200-dbg
libnl-3-dev
libnl-3-doc
libnl-genl-3-200
libnl-genl-3-200-dev
libnl-route-3-200
libnl-route-3-200-dev
Am I missing here something or is this genuinely broken?
OK, so the package is not broken, I am ;)
A short while ago, they introduced a mechanism to enable users to install different versions of this library.
Now you can configure it using "pkg-config" or just pass the precise directory to the compiler with "-I /usr/include/libnl3/".
And it works.