Solved

Missing cygpcre-1.dll

Posted on 2014-03-21
1
866 Views
Last Modified: 2014-03-21
I've installed https://www.itefix.no/i2/content/copssh-free-personal-edition. Running a shell script the command

if ! "$basedir/grep" -qf  "$mydir/$file_with_string" "$myotherdir/file_to_check" ; then

gives the error

Bin grep.exe: error while loading shared libraries: cygpcre-1.dll cannot open shared object file: No such file or directory.

The file cygpcre-1.dll is missing in the bin folder of that ssh implementation. Also, cygcheck is not part of this installation.

Thank you.
0
Comment
Question by:GeologyETH
1 Comment
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39944929
Seems that your copssh package is somewhat inconsistent.

You can get cygpcre-1.dll e. g. here (a German mirror):
http://ftp.uni-kl.de/pub/windows/cygwin/release/pcre/libpcre1/libpcre1-8.31-1.tar.bz2

After decompressing with "bunzip2" and unpacking with "tar" you'll get just the DLL
"cygpcre-1.dll" which you can copy to your copssh "/usr/bin" directory.
The tarball contains the path "usr/bin" so best "cd" to "/" of copssh and unpack it there.

If you don't have "bunzip2" or "tar" try something like "WinZIP".
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now