cygwin/file acces

Posted by Boris on Thu 16 Aug 2001 10:28 AM — 5 posts, 19,839 views.

#0
This might not really apply to the rom offered on this site, but I can't do without the wealth of information that is Nick Gammon :>. So anyway, compiling rom while rom is actually running (need to use copyover!) doesn't work under cygwin.

"..../i686-pc-cygwin/bin/ld: cannot open output file rom.exe: Permission denied

collect2: ld returned 1 exit status

make: *** [rom] Error 1"

Changing the name of the file before run works, but it's a pretty worthless solution. One copyover resets the file name. Any way around this?

Thanks!
#1
On a somewhat different topic, copyover seems to only work when I'm running gdb. Otherwise, I get
"Write_to_descriptor: The descriptor is a file, not a socket"

I have no clue what's going on here!
Australia Forum Administrator #2
Probaby the simplest solution is just to make a copy for running purposes. Make a little shell script like this:


cp rom.exe romrun.exe
cd ../area
../src/romrun.exe


Then run that script rather than just rom.exe. This way it makes a temporary copy - which you use to run rom, and you can recompile as many times as you like, replacing the original rom.exe. Next time you restart the MUD, it will recopy it, and run from the most recent copy.
#3
Well I added this to the startup script, which I haven't used before now. When I go to do ./startup 4000 & it gives me
"BASH: ./startup: bad interpreter: No such file or directory"

And I didn't leave out any packages installing cygwin... How can I run this?
#4
Spoke too soon. Just needed to change it to tcsh.