Vapor Installation Issues (First time using Vapor)

Hello,

I am new to using Swift and am interested in learning Vapor. I recently installed Vapor with Homebrew, but when I use any Vapor command from the terminal, I receive this error:

dyld: Library not loaded: /Users/tanner0101/dev/vapor/toolbox/.build/x86_64-apple-macosx10.10/release/libSwiftPM.dylib
  Referenced from: /usr/local/bin/vapor
  Reason: image not found
Abort trap: 6

I am using the latest stable versions of Xcode and Swift, and tried reinstalling with brew install -force vapor/tap/vapor, but I still keep getting the same error. Any idea what could be causing this? Thanks for the help!

1 Like

Toolbox was updated earlier today and it looks like something may have gone wrong with the home brew upload.

1 Like

Just updated the package and it's now working correctly, thanks.

1 Like

Vapor Installatio Issue

I am trying to install Vapor on my MacBook Pro running macOS Mojave 10.14.1 through homebrew. I keep on getting this error. Can anyone tell me what's wrong and how to fix it ?

Have you already tried brew update?
https://github.com/Homebrew/brew/issues/5048

Yes I did brew update as well. Still getting the same error

Give this a try.

This is an issue with homebrew and not Vapor btw.

Hey thanks for the reply. The installation worked but now I get an error saying

RuntimeError: /usr/local/opt/pkg-config not present or broken
Please reinstall pkg-config. Sorry : (

When I try to link the pkg-config using 'brew link pig-config'

I get an error Error: Could not symlink . /usr/local/opt is not writable.

https://github.com/Homebrew/legacy-homebrew/issues/34762#issuecomment-66226831