Comments (24)
Ok I have a bug to fix
from openbazaar-go.
Download OpenSSL source and put the openssl folder in the $GOPATH/src/github.com/xeodou/go-sqlcipher folder and try again.
from openbazaar-go.
Thanks for the speedy response @hoffmabc. My attempt so far based on your comment:
cd $GOPATH
git clone https://github.com/openssl/openssl
mkdir -p $GOPATH/src/github.com/xeodou/go-sqlcipher/
mv openssl/ $GOPATH/src/github.com/xeodou/go-sqlcipher/
go get github.com/OpenBazaar/openbazaar-go
Same error... Can you post specific shell commands?
from openbazaar-go.
If you use Homebrew this should work:
brew install openssl
brew link openssl --force
Then try again: go get github.com/OpenBazaar/openbazaar-go
from openbazaar-go.
@tyler-smith Same error:
Justins-MacBook-Air:ob-go justin$ brew install openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2h_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2h_1.el_capitan.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local.
Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
==> Summary
🍺 /usr/local/Cellar/openssl/1.0.2h_1: 1,691 files, 12M
Justins-MacBook-Air:ob-go justin$ brew link openssl --force
Linking /usr/local/Cellar/openssl/1.0.2h_1... 1601 symlinks created
Justins-MacBook-Air:ob-go justin$ go get github.com/OpenBazaar/openbazaar-go
# github.com/OpenBazaar/openbazaar-go/vendor/github.com/ipfs/go-ipfs/core/corehttp
src/github.com/OpenBazaar/openbazaar-go/vendor/github.com/ipfs/go-ipfs/core/corehttp/gateway_handler.go:241: invalid operation: ! string
# github.com/OpenBazaar/openbazaar-go/vendor/github.com/xeodou/go-sqlcipher
src/github.com/OpenBazaar/openbazaar-go/vendor/github.com/xeodou/go-sqlcipher/sqlite3-binding.c:16824:10: fatal error: 'openssl/rand.h' file not found
from openbazaar-go.
wget https://www.openssl.org/source/openssl-1.0.1t.tar.gz
tar xzvf openssl-1.0.1t.tar.gz
cd openssl-1.0.1t
cp -rf include/openssl $GOPATH/src/github.com/OpenBazaar/openbazaar-go/vendor/github.com/xeodou/go-sqlcipher/
go get github.com/OpenBazaar/openbazaar-go
from openbazaar-go.
@hoffmabc Oh man, this looked so promising because go get github.com/OpenBazaar/openbazaar-go
took a lot more time. But it failed again...
[lots and lots of stuff]
( :; LIBDEPS="${LIBDEPS:--Wl,-search_paths_first -L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM}"; LIBPATH=`for x in $LIBDEPS; do echo $x; done | sed -e 's/^ *-L//;t' -e d | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=clienthellotest} clienthellotest.o ${LIBDEPS} )
cc -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o dummytest.o dummytest.c
( :; LIBDEPS="${LIBDEPS:--Wl,-search_paths_first -L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM}"; LIBPATH=`for x in $LIBDEPS; do echo $x; done | sed -e 's/^ *-L//;t' -e d | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=dummytest} dummytest.o ${LIBDEPS} )
making all in tools...
make[1]: Nothing to be done for `all'.
Justins-MacBook-Air:openssl-1.0.1t justin$ go get github.com/OpenBazaar/openbazaar-go
# github.com/OpenBazaar/openbazaar-go/vendor/github.com/xeodou/go-sqlcipher
../github.com/OpenBazaar/openbazaar-go/vendor/github.com/xeodou/go-sqlcipher/sqlite3-binding.c:16824:10: fatal error: 'openssl/rand.h' file not found
# github.com/OpenBazaar/openbazaar-go/vendor/github.com/ipfs/go-ipfs/core/corehttp
../github.com/OpenBazaar/openbazaar-go/vendor/github.com/ipfs/go-ipfs/core/corehttp/gateway_handler.go:241: invalid operation: ! string
from openbazaar-go.
is the openssl folder with the headers sitting in that go-sqlcipher folder?
from openbazaar-go.
Oops I made a mistake copy that openssl folder here instead
$GOPATH/src/github.com/OpenBazaar/openbazaar-go/vendor/github.com/xeodou/go-sqlcipher/
from openbazaar-go.
from openbazaar-go.
Ok, things seem to be moving forward. Now I only get a single warning?/error? and it's thinking.
go get github.com/OpenBazaar/openbazaar-go
# github.com/OpenBazaar/openbazaar-go/vendor/github.com/ipfs/go-ipfs/core/corehttp
../github.com/OpenBazaar/openbazaar-go/vendor/github.com/ipfs/go-ipfs/core/corehttp/gateway_handler.go:241: invalid operation: ! string
But then continuing the README.md
instructions I fall flat
Justins-MacBook-Air:ob-go justin$ go run openbazaard.go start
stat openbazaard.go: no such file or directory
from openbazaar-go.
oh you need to move into the main folder
$GOPATH/src/github.com/OpenBazaar/openbazaar-go
from openbazaar-go.
We're getting there 👍 Now what?
Justins-MacBook-Air:openbazaar-go justin$ go run openbazaard.go start
# github.com/OpenBazaar/openbazaar-go/vendor/github.com/ipfs/go-ipfs/core/corehttp
vendor/github.com/ipfs/go-ipfs/core/corehttp/gateway_handler.go:241: invalid operation: ! string
from openbazaar-go.
Now we ask @cpacia to help, because I've not seen thato ne.
from openbazaar-go.
Ok. If that's of any help, here is my go version
Justins-MacBook-Air:openbazaar-go justin$ go version
go version go1.6.3 darwin/amd64
from openbazaar-go.
should be ok now
from openbazaar-go.
This still doesn't work for me. Maybe I need to force a pull somehow?
Justins-MacBook-Air:openbazaar-go justin$ go get github.com/OpenBazaar/openbazaar-go
# github.com/OpenBazaar/openbazaar-go/vendor/github.com/ipfs/go-ipfs/core/corehttp
vendor/github.com/ipfs/go-ipfs/core/corehttp/gateway_handler.go:241: invalid operation: ! string
P.S. I don't have reopen rights.
from openbazaar-go.
Did you do another go get?
from openbazaar-go.
Yes, I'm doing another go get
, and still getting the same error. Strange.
from openbazaar-go.
Tell go get you want to update not just finish installing.
go get -u github.com/OpenBazaar/openbazaar-go
from openbazaar-go.
@tyler-smith Thanks, that's what I was missing 👍
from openbazaar-go.
Hi, I tried @hoffmabc 's solution:
wget https://www.openssl.org/source/openssl-1.0.1t.tar.gz
tar xzvf openssl-1.0.1t.tar.gz
cd openssl-1.0.1t
cp -rf include/openssl $GOPATH/src/github.com/OpenBazaar/openbazaar-go/vendor/github.com/xeodou/go-sqlcipher/
go get github.com/OpenBazaar/openbazaar-go
But there is no openssl
folder in openssl-1.0.1t/include
. The include-folder is completely empty. Am I looking in the wrong place?
from openbazaar-go.
Did you compile OpenSSL?
'''
make
'''
from openbazaar-go.
No, I didn't. I just tried, but I get the following error (OSX 10.11.4 El Capitan):
making all in crypto...
make[1]: *** No rule to make target `../include/openssl/bio.h', needed by `cryptlib.o'. Stop.
make: *** [build_crypto] Error 1
I googled the error, but couldn't find a solution for this problem. It probably is more an OpenSSL problem right?
from openbazaar-go.
Related Issues (20)
- Bug (GET /ob/sales): Orders with a state of PENDING or RESOLVED have a zero value for total.amount HOT 1
- How to reduce memory usage
- OpenBazaar API return empty price HOT 5
- Switch to Go Modules HOT 2
- Please allow search results to be sorted by origin of shipping HOT 1
- ERROR: create new IPFS node; failed to listen on any address
- compile error:go-multihash is not in GOROOT (/home/linuxbrew/.linuxbrew/Cellar/go/1.14.3/libexec/src/gx/ipfs/QmerPMzPk1mJVowm8KgmoknWa4yCYvvugMPsgWmDNUvDLW/go-multihash) GoWork/pkg/mod/github.com/!open!bazaar/[email protected]/ipfs/resolve.go:15:2: HOT 1
- Config File is Malformed HOT 7
- Unresolved conflict pushed in Godeps.json
- Server crash due to ticker error
- Server crash due to websocket timeout HOT 9
- Dev docker build is not working HOT 1
- (wrong page)
- no log for debugging?
- No sellers appear under pclos - is there a linux this is known to work in? HOT 2
- no obvious way to start this
- Openbazaar HOT 2
- Is openbazaar still alive? HOT 4
- unable to migrate unknown schema HOT 1
- How can I connect to the server once launched (docker)?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openbazaar-go.