-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import doesn't work on MacOS X 10.7.5, go version go1.2rc3 darwin/amd64 #92
Comments
Could you please try:
|
I also get the same error with go version go1.2rc5 and mac os version 10.6.8 when I try to build the above script. On my linux machine I built it without problems. |
Are you using clang? |
No, I checked my list of installed packages as provided by mac ports, there is not any clang package among them. |
Could you please try: |
Running the command go-sqlite from a subdirectory say MyProgram, it seems to build without any problems. Note that it creates an archive file go-sqlite3.a at MyProgram/pkg/darwin_amd64, however my system architecture is i386 is this normal?. Finally when I try to run either go install or go build at MyProgram/src/Folder/ where my go files reside the above error happens. |
Then, why are you using |
I changed the go version to one prebuilt for mac os, go version gives me "go1.2rc5 darwin/386". In a fresh install, go-sqlite3 builds succesfully, but when I try to build the above example the error persists. The error differs slightly as you can see
|
Ok, got it working. When compiled with go install -x -ldflags -linkmode=external github.com/sacado/foo Everything works perfectly. Sacado 2013/12/3 Armen Arsakian notifications@github.com
(:> ___ |3 Fabien Delorme |
@aarsakian Could you try @sacado 's way? |
I followed sacado's instructions and it compiled succesfully. |
@sacado right solution, thanks! |
My source code:
Result on calling
go install github.com/sacado/foo
:The text was updated successfully, but these errors were encountered: