JohnSundell / Marathon

[DEPRECATED] Marathon makes it easy to write, run and manage your Swift scripts 🏃
MIT License
1.86k stars 78 forks source link

Unable to `make` Marathon. #65

Closed abhi18av closed 7 years ago

abhi18av commented 7 years ago

Hello @JohnSundell

I wanted to try out marathon, after closely following the installation instructions I run into the following error again and again.

The following info. may be relevant.

I'm on a macOS machine, 10.12.4
And I installed swift using `brew install swift` 

Here's the error.

Marathon git/master*
❯ make
swift package --enable-prefetching update
Fetching git@github.com:johnsundell/wrap.git
Fetching git@github.com:johnsundell/unbox.git
Fetching git@github.com:johnsundell/files.git
Fetching git@github.com:johnsundell/shellout.git
Fetching git@github.com:johnsundell/require.git
Fetching git@github.com:johnsundell/releases.git
Fetching git@github.com:johnsundell/files.git
error: Failed to clone git@github.com:johnsundell/files.git to <AbsolutePath:"/Users/eklavya/Projects/bitworld/SWIFT/Marathon/.build/repositories/files.git--3794229230550581555">
make: *** [install] Error 1

Could you please help me out :)

erenatas commented 7 years ago

Hello, I am having the same issue as well.

pixyzehn commented 7 years ago

@abhi18av @Sovairon Hi, Can you try swift package clean before make? swift package clean will delete build artifacts.

erenatas commented 7 years ago

Erens-iMac:Marathon erenatas$ swift package clean Erens-iMac:Marathon erenatas$ make swift package --enable-prefetching update make: *** [install] Illegal instruction: 4

this is the output.

pixyzehn commented 7 years ago

@Sovairon Ok, What version of Swift? you can check by swift -version. I use the following version.

Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42)
Target: x86_64-apple-macosx10.9
erenatas commented 7 years ago

Mine is the same as well... everything is same. I'm on Sierra 10.12.4 if that would help.

erenatas commented 7 years ago

Oh and, when I follow installation:

Erens-iMac:~ erenatas$ git clone git@github.com:JohnSundell/Marathon.git Cloning into 'Marathon'... Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

Instead I was cloning the repo by git clone https://github.com/JohnSundell/Marathon.git

erenatas commented 7 years ago

I have solved my issue. I generated ssh-rsa key and added it to github's ssh keys. https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/

JohnSundell commented 7 years ago

@Sovairon @abhi18av Yeah the solution is the one @Sovairon links to. I'll update to use HTTPS instead of SSH very soon, but in the meantime please follow GitHub's guide on how to set up SSH and you'll be able to install Marathon 🙂

erenatas commented 7 years ago

Can you add that link on Readme file as well? I'm sure there will be more people that will come across with this problem. Btw, you have made an awesome job. Thanks!

JohnSundell commented 7 years ago

@Sovairon Thanks 😄 Actually, I'm switching to HTTPS now instead 👍

JohnSundell commented 7 years ago

@Sovairon @abhi18av Done ✅ Just pull down the latest master and run make again and you should be good to go 👍 Feel free to close this issue if everything works 😄

pixyzehn commented 7 years ago

Actually, I'm switching to HTTPS now instead

Looks good, thanks!

abhi18av commented 7 years ago

@JohnSundell , thanks for such a prompt response!

Yes, it does successfully copy the git repos but sadly, it fails during the build.

❯ make
swift package --enable-prefetching update
swift build --enable-prefetching -c release -Xswiftc -static-stdlib
xcrun: error: unable to lookup item 'PlatformPath' from command line tools installation
xcrun: error: unable to lookup item 'PlatformPath' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
error: Invalid platform path
make: *** [install] Error 1

It might be 'cos I installed swift via brew, as mentioned in the very first comment. What's the best way to avoid such errors? Install XCode via appstore? I'm sorry, but I'm new to swift :)

abhi18av commented 7 years ago

Closed the issue since the original issue based on the git config seems to be solved now.

Still would appreciate a bit of help though.

abhi18av commented 7 years ago

I think this might be helpful, though quite a long troublesome comment.

This is what happens when I launch swift from the terminal. It throws a long list of messages before entering the repl.

Marathon git/master  12s
❯ sudo swift
Alias tip: _ swift
Password:
Welcome to Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42). Type :help for assistance.
warning: Swift error in module repl_swift.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module dyld.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libz.1.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcompression.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libSystem.B.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcache.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcommonCrypto.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcompiler_rt.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcopyfile.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcorecrypto.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libdispatch.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libdyld.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libkeymgr.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module liblaunch.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libmacho.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libquarantine.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libremovefile.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_asl.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_blocks.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_c.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_configuration.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_coreservices.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_coretls.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_dnssd.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_info.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_kernel.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_m.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_malloc.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_network.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_networkextension.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_notify.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_platform.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_pthread.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_sandbox.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_secinit.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_symptoms.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsystem_trace.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libunwind.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libxpc.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libobjc.A.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libc++abi.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libc++.1.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module liblzma.5.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libswiftCore.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module Foundation.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CoreFoundation.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libauto.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module DiskArbitration.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libarchive.2.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libDiagnosticMessagesClient.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libicucore.A.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libxml2.2.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CFNetwork.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module SystemConfiguration.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CoreServices.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module liblangid.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module IOKit.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libCRFSuite.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module Security.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libenergytrace.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libbsm.0.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libkxld.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcoretls.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcoretls_cfhelpers.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libOpenScriptingUtil.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libpam.2.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libsqlite3.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libxar.1.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libbz2.1.0.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libnetwork.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libpcap.A.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module FSEvents.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CarbonCore.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module Metadata.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module OSServices.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module SearchKit.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module AE.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module LaunchServices.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module DictionaryServices.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module SharedFileList.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module NetFS.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module NetAuth.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module loginsupport.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module TCC.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libmecabra.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module ApplicationServices.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CoreGraphics.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CoreText.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module ImageIO.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module ATS.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module ColorSync.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module HIServices.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module LangAnalysis.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module PrintCore.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module QD.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module SpeechSynthesis.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module Accelerate.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module vImage.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module vecLib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libvDSP.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libBNNS.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libQuadrature.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libvMisc.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libLAPACK.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libBLAS.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libLinearAlgebra.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libSparseBLAS.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libFontParser.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libFontRegistry.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libJPEG.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libTIFF.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libPng.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libGIF.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libJP2.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libRadiance.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module AppleJPEG.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module IOSurface.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module MultitouchSupport.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcups.2.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module Kerberos.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module GSS.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libresolv.9.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libiconv.2.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module Heimdal.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libheimdal-asn1.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module OpenDirectory.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CommonAuth.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CFOpenDirectory.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module SecurityFoundation.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CoreAudio.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module AudioToolbox.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module LanguageModeling.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libmarisa.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libChineseTokenizer.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libcmph.dylib.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CoreData.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module CoreEmoji.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module ServiceManagement.
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module libxslt.1.dylib.
Debug info from this module will be unavailable in the debugger.

  1> :q

Marathon git/master  6s
❯
JohnSundell commented 7 years ago

@abhi18av I'd recommend installing Xcode instead of installing Swift through Homebrew. It seems like you're getting errors from a lot of Apple-provided frameworks, which might not be installed.

JohnSundell commented 7 years ago

Once you open Xcode for the first time it'll prompt you to install command line tools, and once you've done that you should be good to go 😄

abhi18av commented 7 years ago

Ah, well. It seems swift and Xcode are tied together :)

Thanks everyone!