Coder Social home page Coder Social logo

Comments (24)

cpacia avatar cpacia commented on May 18, 2024 2

Ok I have a bug to fix

from openbazaar-go.

hoffmabc avatar hoffmabc commented on May 18, 2024

Download OpenSSL source and put the openssl folder in the $GOPATH/src/github.com/xeodou/go-sqlcipher folder and try again.

from openbazaar-go.

duosearch avatar duosearch commented on May 18, 2024

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.

tyler-smith avatar tyler-smith commented on May 18, 2024

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.

duosearch avatar duosearch commented on May 18, 2024

@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.

hoffmabc avatar hoffmabc commented on May 18, 2024
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.

duosearch avatar duosearch commented on May 18, 2024

@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.

hoffmabc avatar hoffmabc commented on May 18, 2024

is the openssl folder with the headers sitting in that go-sqlcipher folder?

from openbazaar-go.

hoffmabc avatar hoffmabc commented on May 18, 2024

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.

hoffmabc avatar hoffmabc commented on May 18, 2024

image

from openbazaar-go.

duosearch avatar duosearch commented on May 18, 2024

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.

hoffmabc avatar hoffmabc commented on May 18, 2024

oh you need to move into the main folder
$GOPATH/src/github.com/OpenBazaar/openbazaar-go

from openbazaar-go.

duosearch avatar duosearch commented on May 18, 2024

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.

hoffmabc avatar hoffmabc commented on May 18, 2024

Now we ask @cpacia to help, because I've not seen thato ne.

from openbazaar-go.

duosearch avatar duosearch commented on May 18, 2024

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.

cpacia avatar cpacia commented on May 18, 2024

should be ok now

from openbazaar-go.

duosearch avatar duosearch commented on May 18, 2024

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.

hoffmabc avatar hoffmabc commented on May 18, 2024

Did you do another go get?

from openbazaar-go.

duosearch avatar duosearch commented on May 18, 2024

Yes, I'm doing another go get, and still getting the same error. Strange.

from openbazaar-go.

tyler-smith avatar tyler-smith commented on May 18, 2024

Tell go get you want to update not just finish installing.

go get -u github.com/OpenBazaar/openbazaar-go

from openbazaar-go.

JustinDrake avatar JustinDrake commented on May 18, 2024

@tyler-smith Thanks, that's what I was missing 👍

from openbazaar-go.

davalb avatar davalb commented on May 18, 2024

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.

hoffmabc avatar hoffmabc commented on May 18, 2024

Did you compile OpenSSL?
'''
make
'''

from openbazaar-go.

davalb avatar davalb commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.