Showing posts with label Cygwin. Show all posts
Showing posts with label Cygwin. Show all posts

Apr 17, 2013

error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format

Problem:
error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format

Solution:
if you are compiling in cygwin or unix\linux you can apply dos2uinx on files to remove this issue.


mohan@MOHANTL1C ~
$ dos2unix.exe test.txt
dos2unix: converting file test.txt to Unix format ...

Feb 22, 2013

How to create checksums for all files recursively

To create checksums for all files recursively

find . -type f -exec md5sum "{}" +;

Feb 16, 2011

*** fatal error - couldn't allocate heap or How to change cygwin's Maximum Memory

Problem :
In cygwin sometimes you may face get below


C:\>bash --login
      4 [main] bash 18324 c:\cygwin\bin\bash.exe: *** fatal error - couldn't allocate heap, Win32 error 487, base 0x6D0000, top 0x720000, reserve_size 323584, allocsize 327680, page_const 4096

Solution:


Read this link to understand and solve this issue 

http://www.cygwin.com/cygwin-ug-net/setup-maxmem.html

run below command  to fix it
regtool -i set /HKLM/Software/Cygnus\ Solutions/Cygwin/heap_chunk_in_mb 2048

Nov 11, 2009

how to create a user in cygwin ?

Problem:
how to create a user in cygwin ?
useradd and adduser does not works in cygwin.

Solution:
you cannot create a user in cygwin.
create user in windows
login using that user in windows and run load cygwin. it will load in new user created.
do mkpasswd -l > /etc/passwd
then edit /etc/passwd and change the home dir to what ever you want