Opened 12 years ago

Closed 12 years ago

#8409 closed bug (invalid)

Ruby expects network files in /etc

Reported by: Pete Owned by: nobody
Priority: normal Milestone: R1
Component: Network & Internet Version: R1/alpha3
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

I wanted to do some IP lookup in Ruby with the Resolv library, but I got an immediate error "Unable to find /etc/hosts".

I fixed the problem for myself, by just linking hosts and resolv.conf from the settings folder, but I'm not sure what the general solution is. Was it not such a good idea to relocate those files, or should we just expect all apps to be rewritten to conform?

Change History (1)

comment:1 by axeld, 12 years ago

Resolution: invalid
Status: newclosed

The proper fix would be a proper port. Ruby cannot even expect the host system to have a hosts file anyway (even though even Windows has one, but not in /etc either). Every system is different.

Note: See TracTickets for help on using tickets.