CUTR-at-USF / gtfs-osm-sync

Synchronizes public transportation data in GTFS format with OpenStreetMap.org
Other
91 stars 18 forks source link

Mac install fails #7

Open barbeau opened 10 years ago

barbeau commented 10 years ago

From https://code.google.com/p/gtfs-osm-sync/issues/detail?id=17:


When installing on Mac OS 10.6.8, I get as far as step 7 of 9, where it quits with the error: Error executing /bin/chmod +x /Applications/GO-Sync/GO-Sync/bin/compile

Note that there is no 'bin' directory in /Applications/GO-Sync/GO-Sync/ when I check afterwards.


I'm thinking this has to do with any POSIX environment and not just MacOS. Rationale: installer seems to be using a hardcoded \ separator for directories, resulting in failed installs on any operating system not stuck in the 1970s.


running the jar file directly also shows up the hard coded path separators:

Error: java.io.FileNotFoundException: /Users/andrew/GTFS_Temp/\routes.txt (No such file or directory) Error: java.io.FileNotFoundException: /Users/andrew/./GTFS_Temp\routes.txt (No such file or directory) Error: java.io.FileNotFoundException: /Users/andrew/./GTFS_Temp\trips.txt (No such file or directory) Error: java.io.FileNotFoundException: /Users/andrew/./GTFS_Temp\stop_times.txt (No such file or directory) Error: java.io.FileNotFoundException: /Users/andrew/./GTFS_Temp\stops.txt (No such file or directory) Lon, Lat format = -0.0040,-0.0040 0.0040,0.0040 Initializing...

compared to [andrew@skidmark GTFS_Temp]$ ls agency.txt calendar_dates.txt feed_info.txt shapes.txt stops.txt calendar.txt custom_landmarks.txt routes.txt stop_times.txt trips.txt

pichot commented 9 years ago

Any progress on this?

barbeau commented 9 years ago

@pichot Unfortunately not on our end. PR's graciously accepted :).

3vivekb commented 7 years ago

I cloned this program with macOS Sierra 10.12.5. I used brew to install maven, brew install maven and the program compiled and runs _more or less _correctly__.

barbeau commented 7 years ago

Thanks @3vivekb! Can you define "more or less correctly"?

3vivekb commented 7 years ago
  1. I can never seem to read zipped gtfs with my Mac. I need to unzip them first. (Haven't tested on Windows yet)
  2. VTA GTFS fails (though other gtfs files do work) https://github.com/CUTR-at-USF/gtfs-osm-sync/issues/16

Perhaps I should have just said it works?

ehowington commented 6 years ago

I used homebrew to install maven, but it now appears that the latest version may no longer work with this plugin. See error that occurs when command mvn install in the Go_Sync directory is attempted. Any recs?

screen shot 2017-11-06 at 3 31 49 pm

james2432 commented 6 years ago

either the source is targetting java 1.5 or you have java 1.5 installed and need a minimum of 1.6

ehowington commented 6 years ago

@james2432 - any recs on how to rectify this situation? I've tried uninstalling/reinstalling java via homebrew and get the same error. Here's the version I'm running screen shot 2017-11-07 at 7 39 09 am

james2432 commented 6 years ago

https://github.com/CUTR-at-USF/gtfs-osm-sync/blob/master/GO_Sync/nbproject/project.properties#L44 You can try to change L44 and L45 to 1.6

Can't guarantee it will work thought, I'm not familiar how homebrew is packaged. There is something in the source code that is telling your compiler(java 9) to compile to the 1.5 standard(java5)