Modulemap for libhttp-parser
This module binds the http-parser library to Swift.
Requires Swift 3.1.1 minimum.
Modulemap for the http-parser library
License: Apache License 2.0
Modulemap for libhttp-parser
This module binds the http-parser library to Swift.
Requires Swift 3.1.1 minimum.
This has been identified as an issue in Swift Package Manager. A bug has been filed against the Package Manager here.
https://bugs.swift.org/browse/SR-1441
Using Kitura 0.13, the Trunk Development Toolchain 05-03 and running "swift build -X" produces this Xcode linker error.
ld: library not found for -lCHttpParser for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
04-25 Toolchain works OK.
Version 0.1.1 of CHttpParser removes the dependency on the system installed lib-http-parser and brings it "in-house". This means that it creates libCHttpParser.so in my .build/debug/TestApp
directory.
When I run my app (./.build/debug/TestApp
), I get:
.build/debug/TestApp: error while loading shared libraries: libCHttpParser.so: cannot open shared object file: No such file or directory
To resolve, I had to put in a symlink: sudo ln -s /src/TestApp/.build/debug/libCHttpParser.so /usr/lib/libCHttpParser.so
How do I avoid this?
Hi
i am trying to create a docker image Docker file
Docker File:
FROM ibmcom/kitura-ubuntu:latest
USER root
ENV PATH /usr/bin:$PATH
RUN mkdir -p /SwiftClientApi
WORKDIR /SwiftClientApi
ADD . /SwiftClientApi
# Print Installed Swift Version
#RUN swift --version
RUN swift build -Xcc -fblocks -Xlinker -ldispatch
#RUN swift build
EXPOSE 8090
CMD .build/debug/ClientApi
getting following error:
Removing intermediate container 666b67a68112
Step 7 : RUN swift build -Xcc -fblocks -Xlinker -ldispatch
---> Running in a2021b9357e9
Compile CHttpParser utils.c
Compile CHttpParser http_parser.c
Compile Swift Module 'KituraTemplateEngine' (1 sources)
Compile Swift Module 'SwiftyJSON' (2 sources)
Compile Swift Module 'Socket' (3 sources)
Compile Swift Module 'LoggerAPI' (1 sources)
clang: warning: argument unused during compilation: '-Xcc'
clang: warning: argument unused during compilation: '-Xcc'
Linking CHttpParser
/usr/bin/ld: error: cannot find -ldispatch
clang: error: linker command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: build had 1 command failures
swift-build: error: exit(1): /root/swift-DEVELOPMENT-SNAPSHOT-2016-06-20-a-ubuntu14.04/usr/bin/swift-build-tool -f /SwiftClientApi/.build/debug.yaml
The command '/bin/sh -c swift build -Xcc -fblocks -Xlinker -ldispatch' returned a non-zero code: 1
0.11.3 was working, but with the changes in 0.11.4, the following run time error occurs:
./.build/debug/appname: error while loading shared libraries: libCHttpParser.so: cannot open shared object file: No such file or directory
Notes:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.