From: nobu.nokada@... Date: 2003-07-31T08:17:18+09:00 Subject: Re: some local issues with ruby 1.8.0 preview 4 and 5 Hi, At Thu, 31 Jul 2003 08:04:50 +0900, Gavin Jin wrote: > compiling dbm > ./ext/extmk.rb:104: warning: Insecure world writable dir > /Users/gjin/code, mode 040777 > cc -dynamic -bundle -undefined suppress -flat_namespace > -L"/Volumes/software/development/ruby/1.8Preview5/ruby-1.8.0" > -L"/usr/local/lib" -o dbm.bundle dbm.o -ldb -ldl -lobjc > ld: can't locate file for: -ldb > make[1]: *** [dbm.bundle] Error 1 > make: *** [all] Error 1 ld searches libdb.la (or .dylib?). > This happens even with /sw/lib, where gdbm is installed, is in the > library path. > I then tried to add symbolic links to /usr/local/lib : > [dhcp-64-101-108-187:/usr/local/lib] gjin% sudo ln -s > /Volumes/OpenApps/sw/lib/libgdbm.la libgdbm.la > Password: > [dhcp-64-101-108-187:/usr/local/lib] gjin% sudo ln -s > /Volumes/OpenApps/sw/lib/libgdbm.a libgdbm.a > [dhcp-64-101-108-187:/usr/local/lib] gjin% sudo ln -s > /Volumes/OpenApps/sw/lib/libgdbm.2.0.0.dylib libgdbm.dylib > [dhcp-64-101-108-187:/usr/local/lib] gjin% instead of gdbm. Try to "configure" with --with-opt-dir=/Volumes/OpenApps/sw option. > Dir.open(ARGV[1]) > > is getting error when the directory passed with ARGV[1] doesn't exist: > > /Users/gjin/code/util/ruby/IP/myTest.rb:8:in `open': No such file or > directory - /Volumes/users/gjin/cisco/passthru/decoded/qqq > (Errno::ENOENT) > from /Users/gjin/code/util/ruby/IP/myTest.rb:8 Definitely normal. > Dir.open is supposed to create a new directory if it doesn't exist. No. Dir.open just accesses the existing directory. Use Dir.mkdir to create a new directory. -- Nobu Nakada