cygwin mpicxx not found - cygwin

I'm trying to use mpicxx with cygwin. I've installed all openmpi packages available but when typing mpicxx still get a "command not found". I looked into the /usr/bin folder and mpicxx is missing, while C and fortran versions are there. Any possible explanation or solution?

StackOverflow is for programming question not for support.
Cygwin support requests should be sent to the Cygwin mailing list
https://cygwin.com/cygwin/lists.html
This particular question was already asked and the answer is at
https://cygwin.com/ml/cygwin/2018-09/msg00180.html
mpic++ and mpicxx are just links to opal_wrapper.exe you can reinstate
by yourself
It is the same for all the other compilers
$ cd /bin
$ ls -l mpi*
lrwxrwxrwx 1 Marco Kein 16 Sep 13 12:17 mpic++ -> opal_wrapper.exe
-rwxr-xr-x 1 Marco Kein 18K Mar 19 2018 mpicalc.exe
lrwxrwxrwx 1 Marco Kein 16 Sep 5 16:46 mpicc -> opal_wrapper.exe
lrwxrwxrwx 1 Marco Kein 11 Sep 5 16:46 mpiexec -> orterun.exe
lrwxrwxrwx 1 Marco Kein 16 Sep 5 16:46 mpif77 -> opal_wrapper.exe
lrwxrwxrwx 1 Marco Kein 16 Sep 5 16:46 mpif90 -> opal_wrapper.exe
lrwxrwxrwx 1 Marco Kein 16 Sep 5 16:46 mpifort -> opal_wrapper.exe
lrwxrwxrwx 1 Marco Kein 11 Sep 5 16:46 mpirun -> orterun.exe

Related

configure: error: --with-ssl was given, but OpenSSL wasn't found on ubuntu 20.04?

I have try to compile and build libcurl inside my toolcahin folder by using cross compile but always I got same error...
1-First I build openssl by this steps
export TOOLCHAIN=/home/MY/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi
export CC=$TOOLCHAIN/bin/arm-linux-gnueabi-gcc-7.5.0
export RANLIB=$TOOLCHAIN/bin/arm-linux-gnueabi-ranlib
export PATH="$TOOLCHAIN/bin:$PATH"
./Configure linux-generic32 --prefix=$TOOLCHAIN/arm-linux-gnueabi/libc/usr no-async
make depends
make
make install
.
.
.
cp libcrypto.pc /home/MY/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/sysroot/usr/lib/pkgconfig
chmod 644 /home/MY/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/sysroot/usr/lib/pkgconfig/libcrypto.pc
cp libssl.pc /home/MY/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/sysroot/usr/lib/pkgconfig
chmod 644 /home/MY/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/sysroot/usr/lib/pkgconfig/libssl.pc
cp openssl.pc /home/MY/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/sysroot/usr/lib/pkgconfig
chmod 644 /home/MY/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/sysroot/usr/lib/pkgconfig/openssl.pc
.
.
.
~/$ ls -n from gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi
total 36
drwxr-xr-x 6 raed raed 4096 نوف 26 12:31 arm-linux-gnueabi
drwxr-xr-x 2 raed raed 4096 ديس 4 2019 bin
-rw-r--r-- 1 raed raed 11287 ديس 4 2019 gcc-linaro-7.5.0-2019.12-linux-manifest.txt
drwxr-xr-x 3 raed raed 4096 ديس 4 2019 include
drwxr-xr-x 3 raed raed 4096 ديس 4 2019 lib
drwxr-xr-x 3 raed raed 4096 ديس 4 2019 libexec
drwxr-xr-x 8 raed raed 4096 ديس 4 2019 share
~/$ ls -n from arm-linux-gnueabi/libc/usr
total 28
drwxr-xr-x 2 raed raed 4096 نوف 26 12:18 bin
drwxr-xr-x 34 raed raed 4096 نوف 26 12:18 include
drwxr-xr-x 6 raed raed 4096 نوف 26 12:18 lib
drwxr-xr-x 3 raed raed 4096 ديس 4 2019 libexec
drwxr-xr-x 2 raed raed 4096 ديس 4 2019 sbin
drwxr-xr-x 5 raed raed 4096 ديس 4 2019 share
drwxrwxr-x 6 raed raed 4096 نوف 26 12:18 ssl
2-Then I have try to build libcurl with--ssl but I have got error
cd curl-7.72.0
export TOOLCHAIN=/home/MY/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi
export CC=$TOOLCHAIN/bin/arm-linux-gnueabi-gcc-7.5.0
export RANLIB=$TOOLCHAIN/bin/arm-linux-gnueabi-ranlib
export PATH="$TOOLCHAIN/bin:$PATH"
./configure --with-ssl=/home/MY/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/libc/usr --host=arm-linux-gnueabi
.
.
.
configure: PKG_CONFIG_LIBDIR will be set to "/home/MY/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/libc/usr/lib/pkgconfig"
checking for arm-linux-gnueabi-pkg-config... /usr/bin/pkg-config
checking for openssl options with pkg-config... found
configure: pkg-config: SSL_LIBS: "-lssl -lcrypto"
configure: pkg-config: SSL_LDFLAGS: "-L/home/MY/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/libc/usr/lib"
configure: pkg-config: SSL_CPPFLAGS: "-I/home/MY/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/libc/usr/include"
checking for HMAC_Update in -lcrypto... no
checking for HMAC_Init_ex in -lcrypto... no
checking OpenSSL linking with -ldl... no
checking OpenSSL linking with -ldl and -lpthread... no
configure: OPT_SSL: /home/MY/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/libc/usr
configure: OPENSSL_ENABLED:
configure: error: --with-ssl was given but OpenSSL could not be detected
P.s: same steps work just fine on ubuntu 18.04
There are a lot of different ways to build libcurl with openssl support, and this may not be immediate to find out what is causing this issue.
But here is the procedure I am using on Ubuntu 20.04.1 - You may have to adjust the content of the CROSS_COMPILE variable, since you are using the arm-linux-gnueabi toolchain, and not the arm-none-linux-gnueabihf one: I am using the gcc toolchain for Cortex-A from ARM.
The versions of curl and openssl may have to be adjusted as well.
CROSS_COMPILE=/opt/arm/9/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-
PREFIX=$(pwd)/sysroot
wget https://www.openssl.org/source/openssl-1.1.1h.tar.gz
tar zxf openssl-1.1.1h.tar.gz
pushd openssl-1.1.1h
./Configure linux-generic32 shared -DL_ENDIAN --prefix=${PREFIX} --openssldir=${PREFIX} shared
make CROSS_COMPILE=/opt/arm/9/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf- PROCESSOR=ARM install
popd
wget https://zlib.net/zlib-1.2.11.tar.gz
tar xvf zlib-1.2.11.tar.gz
pushd zlib-1.2.11
CC=${CROSS_COMPILE}gcc ./configure --prefix=${PREFIX}
make CC=${CROSS_COMPILE}gcc all install
popd
wget https://curl.haxx.se/download/curl-7.73.0.tar.gz
tar zxf curl-7.73.0.tar.gz
pushd curl-7.73.0
CC=${CROSS_COMPILE}gcc LD=${CROSS_COMPILE}ld AR=${CROSS_COMPILE}ar NM=${CROSS_COMPILE}nm AS=${CROSS_COMPILE}as ./configure --disable-static --enable-shared --with-ssl=${PREFIX} --prefix=${PREFIX} --host=arm-none-linux-gnueabihf --target=arm-none-linux-gnueabihf --without-libidn2
make CC=${CROSS_COMPILE}gcc LD=${CROSS_COMPILE}ld AR=${CROSS_COMPILE}ar NM=${CROSS_COMPILE}nm AS=${CROSS_COMPILE}as install
popd
ll -gG sysroot/lib/
total 6796
drwxrwxr-x 4 4096 Nov 16 08:10 ./
drwxrwxr-x 9 4096 Nov 16 07:53 ../
drwxrwxr-x 2 4096 Nov 16 07:53 engines-1.1/
-rw-r--r-- 1 3199974 Nov 16 07:53 libcrypto.a
lrwxrwxrwx 1 16 Nov 16 07:53 libcrypto.so -> libcrypto.so.1.1*
-rwxr-xr-x 1 2087864 Nov 26 07:53 libcrypto.so.1.1*
-rwxr-xr-x 1 1027 Nov 26 08:10 libcurl.la*
lrwxrwxrwx 1 16 Nov 26 08:10 libcurl.so -> libcurl.so.4.7.0*
lrwxrwxrwx 1 16 Nov 26 08:10 libcurl.so.4 -> libcurl.so.4.7.0*
-rwxr-xr-x 1 407748 Nov 26 08:10 libcurl.so.4.7.0*
-rw-r--r-- 1 578076 Nov 26 07:53 libssl.a
lrwxrwxrwx 1 13 Nov 26 07:53 libssl.so -> libssl.so.1.1*
-rwxr-xr-x 1 453684 Nov 26 07:53 libssl.so.1.1*
-rw-r--r-- 1 96210 Nov 26 07:51 libz.a
lrwxrwxrwx 1 14 Nov 26 07:51 libz.so -> libz.so.1.2.11*
lrwxrwxrwx 1 14 Nov 26 07:51 libz.so.1 -> libz.so.1.2.11*
-rwxr-xr-x 1 98708 Nov 26 07:51 libz.so.1.2.11*
drwxrwxr-x 2 4096 Nov 26 08:10 pkgconfig/
file sysroot/bin/curl
sysroot/bin/curl: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, with debug_info, not stripped
share edit delete flag
Thank you ..
I solve the issue ...
The problem is with zlib need to build it inside toolchain and add this in configure seetings
--with-zlib=$prefix/lib

Symbolic link difference between cp -sr and ln -s [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I'm trying to make symbolic links in my Dropbox so that I don't have duplicate files all over my computer (file space is limited). I've come across some confusing behavior in ln -s vs. cp -s. Basically, ln -s seems to make a link to the original folder, but then copies all the files within the folder to a new location. cp -sr recursively makes links to all files within the folder (which is the desired behavior).
For example:
nate#auerilas ~ $ mkdir ~/Desktop/test_ln
nate#auerilas ~ $ mkdir ~/Desktop/test_cp
nate#auerilas ~ $ cp -sr ~/Documents/GIS_Files/WorldClim2/Monthly/Prec/ ~/Desktop/test_cp
nate#auerilas ~ $ ln -s ~/Documents/GIS_Files/WorldClim2/Monthly/Prec/ ~/Desktop/test_ln
nate#auerilas ~ $ cd ~/Desktop/test_cp/Prec
nate#auerilas ~/Desktop/test_cp/Prec $ ls -ls
total 52
4 lrwxrwxrwx 1 nate nate 65 Apr 27 11:40 readme.txt -> /home/nate/Documents/GIS_Files/WorldClim2/Monthly/Prec/readme.txt
4 lrwxrwxrwx 1 nate nate 76 Apr 27 11:40 wc2.0_30s_prec_01.tif -> /home/nate/Documents/GIS_Files/WorldClim2/Monthly/Prec/wc2.0_30s_prec_01.tif
4 lrwxrwxrwx 1 nate nate 76 Apr 27 11:40 wc2.0_30s_prec_02.tif -> /home/nate/Documents/GIS_Files/WorldClim2/Monthly/Prec/wc2.0_30s_prec_02.tif
4 lrwxrwxrwx 1 nate nate 76 Apr 27 11:40 wc2.0_30s_prec_03.tif -> /home/nate/Documents/GIS_Files/WorldClim2/Monthly/Prec/wc2.0_30s_prec_03.tif
4 lrwxrwxrwx 1 nate nate 76 Apr 27 11:40 wc2.0_30s_prec_04.tif -> /home/nate/Documents/GIS_Files/WorldClim2/Monthly/Prec/wc2.0_30s_prec_04.tif
4 lrwxrwxrwx 1 nate nate 76 Apr 27 11:40 wc2.0_30s_prec_05.tif -> /home/nate/Documents/GIS_Files/WorldClim2/Monthly/Prec/wc2.0_30s_prec_05.tif
4 lrwxrwxrwx 1 nate nate 76 Apr 27 11:40 wc2.0_30s_prec_06.tif -> /home/nate/Documents/GIS_Files/WorldClim2/Monthly/Prec/wc2.0_30s_prec_06.tif
4 lrwxrwxrwx 1 nate nate 76 Apr 27 11:40 wc2.0_30s_prec_07.tif -> /home/nate/Documents/GIS_Files/WorldClim2/Monthly/Prec/wc2.0_30s_prec_07.tif
4 lrwxrwxrwx 1 nate nate 76 Apr 27 11:40 wc2.0_30s_prec_08.tif -> /home/nate/Documents/GIS_Files/WorldClim2/Monthly/Prec/wc2.0_30s_prec_08.tif
4 lrwxrwxrwx 1 nate nate 76 Apr 27 11:40 wc2.0_30s_prec_09.tif -> /home/nate/Documents/GIS_Files/WorldClim2/Monthly/Prec/wc2.0_30s_prec_09.tif
4 lrwxrwxrwx 1 nate nate 76 Apr 27 11:40 wc2.0_30s_prec_10.tif -> /home/nate/Documents/GIS_Files/WorldClim2/Monthly/Prec/wc2.0_30s_prec_10.tif
4 lrwxrwxrwx 1 nate nate 76 Apr 27 11:40 wc2.0_30s_prec_11.tif -> /home/nate/Documents/GIS_Files/WorldClim2/Monthly/Prec/wc2.0_30s_prec_11.tif
4 lrwxrwxrwx 1 nate nate 76 Apr 27 11:40 wc2.0_30s_prec_12.tif -> /home/nate/Documents/GIS_Files/WorldClim2/Monthly/Prec/wc2.0_30s_prec_12.tif
nate#auerilas ~ $ cd ~/Desktop/test_ln/Prec
nate#auerilas ~/Desktop/test_ln/Prec $ ls -ls
total 1030608
8 -rw-rw-r-- 1 nate nate 256 Jul 4 2016 readme.txt
74828 -rw-rw-r-- 1 nate nate 76618603 Jun 30 2016 wc2.0_30s_prec_01.tif
76620 -rw-rw-r-- 1 nate nate 78453928 Jun 30 2016 wc2.0_30s_prec_02.tif
86664 -rw-rw-r-- 1 nate nate 88738160 Jun 30 2016 wc2.0_30s_prec_03.tif
89424 -rw-rw-r-- 1 nate nate 91564709 Jun 30 2016 wc2.0_30s_prec_04.tif
88272 -rw-rw-r-- 1 nate nate 90386408 Jun 30 2016 wc2.0_30s_prec_05.tif
90364 -rw-rw-r-- 1 nate nate 92524861 Jun 30 2016 wc2.0_30s_prec_06.tif
92252 -rw-rw-r-- 1 nate nate 94459125 Jun 30 2016 wc2.0_30s_prec_07.tif
94700 -rw-rw-r-- 1 nate nate 96964870 Jun 30 2016 wc2.0_30s_prec_08.tif
88708 -rw-rw-r-- 1 nate nate 90829431 Jun 30 2016 wc2.0_30s_prec_09.tif
92756 -rw-rw-r-- 1 nate nate 94977702 Jun 30 2016 wc2.0_30s_prec_10.tif
79808 -rw-rw-r-- 1 nate nate 81716504 Jun 30 2016 wc2.0_30s_prec_11.tif
76204 -rw-rw-r-- 1 nate nate 78025342 Jun 30 2016 wc2.0_30s_prec_12.tif
Note the difference in file sizes between the two methods, and the lack of a link for the files made by ln -s. If I go into my file browser and right click to look at the properties, I also see something different.
ln -s
Type Image
Size 76.6 MB
Location /home/nate/Desktop/test_ln/Prec
cp -sr
Type Link to Image
Link target /home/nate/Documents/GIS_File..nthly/Prec/wc2.0...
Size 76.6 MB
Location /home/nate/Desktop/test_cp/Prec
So cp -sr seems to be actually linking each file in a directory, whereas ln -s seems to link the top folder only and copying the files within the folder, thus duplicating files.
Is that correct?
The problem is that if I use cp -sr, only the files themselves are linked, not the top folder. So if I add or delete a file on my harddrive, the change isn't then copied to Dropbox
Running Linux Mint 18.3
You're correct. Here's info cp explicitly saying that it only links non-directories:
‘-s’
‘--symbolic-link’
Make symbolic links instead of copies of non-directories.

No such file or directory when running sublime text 3

I need some help installing sublime text 3 in Nixos 17.03.
I have downloaded and unpacked the tar ball from sublime and this it was happens when I try to execute /opt/sublime_text/sublime_text:
/opt/sublime_text/sublime_text
sh: /opt/sublime_text/sublime_text: No such file or directory
The file exist in the correct location with run permissions.
sh-4.4$ cd /opt/sublime_text/
sh-4.4$ ls -la
totalt 15944
drwxr-xr-x 4 jan users 4096 23 sep 2016 .
drwxr-xr-x 7 jan users 4096 30 apr 23.28 ..
-rw-r--r-- 1 jan users 30118 23 sep 2016 changelog.txt
-rwxr-xr-x 1 jan users 488672 23 sep 2016 crash_reporter
drwxr-xr-x 7 jan users 4096 23 sep 2016 Icon
drwxr-xr-x 2 jan users 4096 23 sep 2016 Packages
-rwxr-xr-x 1 jan users 7883616 23 sep 2016 plugin_host
-rw-r--r-- 1 jan users 2624408 23 sep 2016 python3.3.zip
-rw-r--r-- 1 jan users 28578 23 sep 2016 sublime_plugin.py
-rw-r--r-- 1 jan users 37137 23 sep 2016 sublime.py
-rwxr-xr-x 1 jan users 5200392 23 sep 2016 sublime_text
-rw-r--r-- 1 jan users 532 23 sep 2016 sublime_text.desktop
Yes, the file does exist there and is executable! But, the error message is misleading.
Try to run file command on that ELF file:
$ file ./sublime_text
./sublime_text: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=e359d67c8f71f88174135aefc069239f64f26c42, stripped
You see, it refers to /lib/ld-linux.so.2 interpreter library, which doesn't exist on NixOS.
Though sublimetext3 is packaged in Nixpkgs, and we can see that it refers to another interpreter:
$ file /nix/store/bv5j4qiif1h9db6qcfl9axhv7rvza2b8-sublimetext3-3114-bin/.sublime_text-wrapped
/nix/store/bv5j4qiif1h9db6qcfl9axhv7rvza2b8-sublimetext3-3114-bin/.sublime_text-wrapped: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /nix/store/jm1n87rp8vr90j9ahcrfzr57nc2r8vgf-glibc-2.24/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=93b181f0f699bd88a052048070efe8ad6757a6fd, stripped
This is achieved by running patchelf on the binary, which is a common trick in Nixpkgs/NixOS to fix binaries.

ncurses not found when trying to build vim

I am trying to build vim in my user dir after recently upgraded to Fedora 23
I have ncurses and ncurses-devel
[root#statquant-laptop lib]# dnf install ncurses
Last metadata expiration check performed 1:09:48 ago on Sat Jan 9 10:33:06 2016.
Package ncurses-5.9-21.20150214.fc23.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
[root#statquant-laptop lib]# dnf install ncurses-devel
Last metadata expiration check performed 1:09:58 ago on Sat Jan 9 10:33:06 2016.
Package ncurses-devel-5.9-21.20150214.fc23.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
Here is the proof:
[root#statquant-laptop lib]# ll /usr/lib/libncurs*
lrwxrwxrwx. 1 root root 17 Jun 17 2015 /usr/lib/libncurses.so.5 -> libncurses.so.5.9
lrwxrwxrwx. 1 root root 19 Jun 17 2015 /usr/lib/libncurses++.so.5 -> libncurses++.so.5.9
-rwxr-xr-x. 1 root root 154448 Jun 17 2015 /usr/lib/libncurses.so.5.9
-rwxr-xr-x. 1 root root 68176 Jun 17 2015 /usr/lib/libncurses++.so.5.9
lrwxrwxrwx. 1 root root 20 Jun 17 2015 /usr/lib/libncurses++w.so.5 -> libncurses++w.so.5.9
lrwxrwxrwx. 1 root root 18 Jun 17 2015 /usr/lib/libncursesw.so.5 -> libncursesw.so.5.9
-rwxr-xr-x. 1 root root 68176 Jun 17 2015 /usr/lib/libncurses++w.so.5.9
-rwxr-xr-x. 1 root root 216000 Jun 17 2015 /usr/lib/libncursesw.so.5.9
[root#statquant-laptop lib]# ll /usr/lib64/libncurs*
-rw-r--r--. 1 root root 330362 Jun 17 2015 /usr/lib64/libncurses.a
-rw-r--r--. 1 root root 183214 Jun 17 2015 /usr/lib64/libncurses++.a
-rw-r--r--. 1 root root 473398 Jun 17 2015 /usr/lib64/libncurses_g.a
-rw-r--r--. 1 root root 183214 Jun 17 2015 /usr/lib64/libncurses++_g.a
-rw-r--r--. 1 root root 31 Jun 17 2015 /usr/lib64/libncurses.so
lrwxrwxrwx. 1 root root 17 Jun 17 2015 /usr/lib64/libncurses++.so -> libncurses++.so.5
lrwxrwxrwx. 1 root root 17 Jun 17 2015 /usr/lib64/libncurses.so.5 -> libncurses.so.5.9
lrwxrwxrwx. 1 root root 19 Jun 17 2015 /usr/lib64/libncurses++.so.5 -> libncurses++.so.5.9
-rwxr-xr-x. 1 root root 155056 Jun 17 2015 /usr/lib64/libncurses.so.5.9
-rwxr-xr-x. 1 root root 76968 Jun 17 2015 /usr/lib64/libncurses++.so.5.9
-rw-r--r--. 1 root root 183214 Jun 17 2015 /usr/lib64/libncurses++w.a
-rw-r--r--. 1 root root 433400 Jun 17 2015 /usr/lib64/libncursesw.a
-rw-r--r--. 1 root root 183214 Jun 17 2015 /usr/lib64/libncurses++w_g.a
-rw-r--r--. 1 root root 593812 Jun 17 2015 /usr/lib64/libncursesw_g.a
lrwxrwxrwx. 1 root root 18 Jun 17 2015 /usr/lib64/libncurses++w.so -> libncurses++w.so.5
-rw-r--r--. 1 root root 32 Jun 17 2015 /usr/lib64/libncursesw.so
lrwxrwxrwx. 1 root root 20 Jun 17 2015 /usr/lib64/libncurses++w.so.5 -> libncurses++w.so.5.9
lrwxrwxrwx. 1 root root 18 Jun 17 2015 /usr/lib64/libncursesw.so.5 -> libncursesw.so.5.9
-rwxr-xr-x. 1 root root 76968 Jun 17 2015 /usr/lib64/libncurses++w.so.5.9
-rwxr-xr-x. 1 root root 208400 Jun 17 2015 /usr/lib64/libncursesw.so.5.9
When I run ./configure:
./configure --with-features=huge \
--enable-fail-if-missing \
--enable-luainterp=yes \
--enable-mzschemeinterp \
--enable-perlinterp \
--enable-pythoninterp=yes \
--with-python-config-dir=/usr/lib64/python2.7/config \
--enable-python3interp=yes \
--enable-tclinterp=yes \
--enable-rubyinterp=yes \
--enable-cscope \
--enable-multibyte \
--enable-gui=gtk2 \
--prefix=$HOME/Build/vim
I get
checking for tgetent in -lcurses... no
no terminal library found
checking for tgetent()... configure: error: NOT FOUND!
You need to install a terminal library; for example ncurses.
Or specify the name of the library with --with-tlib.
What can I do ?
I ran into the same issue on Fedora23. Here is my solution:
make sure you have ncurses-devel installed
CFLAGS=-fPIC ./configure --with-tlib=ncurses and your_options
I checked the config.log and found that gcc complained the lack of '-fPIC'
You apparently do not have the development package for ncurses installed. On Fedora23, that would be ncurses-devel, e.g., ncurses-devel-5.9-21.20150214.fc23.x86_64
Without that, you have only the runtime libraries (which are required).
Once you have that, the configuration for vim 7.4 would show something like this:
checking --with-tlib argument... empty: automatic terminal library selection
checking for tgetent in -ltinfo... yes
checking whether we talk terminfo... yes
checking what tgetent() returns for an unknown terminal... zero
checking whether termcap.h contains ospeed... yes
checking whether termcap.h contains UP, BC and PC... yes
checking whether tputs() uses outfuntype... no
Further reading:
how to install ncurses library in fedora?
RPM resource ncurses-devel

GitGutter doesn't work

I've tried to use vim-gitgutter but it doesn't work and I even don't know where to find a root of error.
$ git --version
git version 1.9.3 (Apple Git-50)
$ vim --version | head -1
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Sep 12 2013 14:04:26)
$ ll ~/.vim/autoload/pathogen.vim
-rw-r--r-- 1 coder staff 12K 8 Dec 23:32 /Users/coder/.vim/autoload/pathogen.vim
$ ll ~/.vim/bundle/vim-gitgutter
total 56
-rw-r--r-- 1 coder staff 12K 8 Dec 23:17 README.mkd
drwxr-xr-x 4 coder staff 136B 8 Dec 23:17 autoload
drwxr-xr-x 3 coder staff 102B 8 Dec 23:17 doc
drwxr-xr-x 3 coder staff 102B 8 Dec 23:17 plugin
-rw-r--r-- 1 coder staff 16K 8 Dec 23:17 screenshot.png
drwxr-xr-x 39 coder staff 1,3K 8 Dec 23:17 test
:echo has('signs') returns 1 as it should and I can see the differences by git diff
It turned out that pathogen wasn't activated and it didn't load gitgutter. I fixed it by adding the following line to ~/.vimrc
execute pathogen#infect()

Resources