Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Mac install fails #7

Open
barbeau opened this issue May 8, 2014 · 9 comments
Open

Mac install fails #7

barbeau opened this issue May 8, 2014 · 9 comments
Labels

Comments

@barbeau
Copy link
Member

barbeau commented May 8, 2014

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

@barbeau barbeau added the bug label May 8, 2014
@pichot
Copy link

pichot commented Dec 16, 2014

Any progress on this?

@barbeau
Copy link
Member Author

barbeau commented Dec 16, 2014

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

@3vivekb
Copy link

3vivekb commented Jul 21, 2017

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
Copy link
Member Author

barbeau commented Jul 21, 2017

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

@3vivekb
Copy link

3vivekb commented Jul 21, 2017

  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) App closes when loading gtfs file #16

Perhaps I should have just said it works?

@ehowington
Copy link

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
Copy link
Contributor

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

@ehowington
Copy link

@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
Copy link
Contributor

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants