A C program was compiled under Cygwin and run directly under Windows. The following runtime error was observed,
cygwin1.dll not found
Make sure that the environment variable, PATH, has the directory C:\gygwin\bin which contains the dll, cygwin1.dll.
On Windows Vista, this can be done as follows:
- From Start menu, click Control Panel.
Multi-boot systems with Linux and Windows are quite common. With the following steps, it is easy to access Windows partitions under Linux.
1. Examine the disk partitions. For example,
sudo fdisk -l
gives the output,
Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x093fba08 Device Boot Start End Blocks Id System /dev/sda1 * 1 9311 74790576 7 HPFS/NTFS /dev/sda2 18456 19457 8048565 7 HPFS/NTFS /dev/sda3 9312 11622 18563107+ bf Solaris /dev/sda4 11623 18455 54886072+ 5 Extended /dev/sda5 11623 11747 1004031 82 Linux swap / Solaris /dev/sda6 11748 12356 4891761 83 Linux /dev/sda7 12357 16004 29302528+ 83 Linux /dev/sda8 16005 18455 19687626 83 Linux
/dev/sda1 and /dev/sda2, here, refer to the Windows' C and D drives respectively.… Read more
rsync is a one-way file synchronization tool used in Linux and other Unix-like systems. It is used to ensure that the destination file(s) become an exact replica of corresponding file(s) at the source, thus providing an excellent tool for taking backups.… Read more
vi is a classic text editor that has been available with Unix systems right from the beginning. vi has been a very popular text editor and one can edit files very efficiently using it. In this tutorial, we look at some of the vi commands that make it such a powerful editor.… Read more
make is a utility for building programs based on the contents of a specially formatted text file named Makefile or makefile under Linux and Unix environments. A makefile has explicit rules, implicit rules, variable definitions, directives and comments. In the primer make tutorial, we looked at some example makefiles containing explicit rules.… Read more
As the number of source files and libraries required to build a software increase in number, the build process gets more complicated and the time required to build the final executable becomes more and more. Here, the classic make utility available in Linux and other Unix-like environments comes to the rescue as it automatically builds the software based on rules given in a makefile and optimizes on the build process by compiling only the files that have changed since the last build.… Read more
A Linux system provides many services to the users, like secure shell access or the print spooler service. These services need to be started and stopped at appropriate times. The start and stop of these services is controlled by
init scripts.… Read more
This tutorial looks at the GNU Build System. From an end-user's perspective, it first describes how to build the binary executable of a GNU free and open source software package from the available source code and install it on your system.… Read more
Quite often, we wish to know the differences between two versions of a file or a group of files, which may be organized in a directory tree. We wish to be sure that work done is as desired and no errors have been introduced inadvertently in the file(s).… Read more