Skip to content
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

Error when compiling #2

Closed
ABAC95 opened this issue Oct 14, 2021 · 4 comments
Closed

Error when compiling #2

ABAC95 opened this issue Oct 14, 2021 · 4 comments

Comments

@ABAC95
Copy link

@ABAC95 ABAC95 commented Oct 14, 2021

Hello, this would probably be a noob mistake that i'm making but i get the following error when compiling:

uniform@pop-os:~/Descargas/joplin2obsidian$ make
build version: v0.2.1-3-ga53ee6b
env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.Version=v0.2.1-3-ga53ee6b" -o dist/joplin2obsidian_darwin_amd64
env: «go»: The file or directory does not exist
make: *** [makefile:6: core] Error 127

@supotnitskiy
Copy link

@supotnitskiy supotnitskiy commented Oct 22, 2021

I have the same problem

I decided this way
sudo apt install golang-go

but then the following problem appeared when doing make

sergei@sergei-dom:~/joplin2obsidian$ make

build version: v0.2.1-3-ga53ee6b

env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.Version=v0.2.1-3-ga53ee6b" -o dist/joplin2obsidian_darwin_amd64
env CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.Version=v0.2.1-3-ga53ee6b" -o dist/joplin2obsidian_darwin_arm64
# net.bangnimang/joplin2obsidian
/usr/lib/go-1.13/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: unknown parameter  «-pagezero_size»

my operating system ubuntu Linux. 20/04

@luxi78
Copy link
Owner

@luxi78 luxi78 commented Oct 24, 2021

Hello, this would probably be a noob mistake that i'm making but i get the following error when compiling:

uniform@pop-os:~/Descargas/joplin2obsidian$ make build version: v0.2.1-3-ga53ee6b env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.Version=v0.2.1-3-ga53ee6b" -o dist/joplin2obsidian_darwin_amd64 env: «go»: The file or directory does not exist make: *** [makefile:6: core] Error 127

Hi @ABAC95 , it seems that the go command does not exist. did you follow the instructions( https://golang.org/doc/install ) to install the golang development environment?

@luxi78
Copy link
Owner

@luxi78 luxi78 commented Oct 24, 2021

I have the same problem

I decided this way sudo apt install golang-go

but then the following problem appeared when doing make

sergei@sergei-dom:~/joplin2obsidian$ make

build version: v0.2.1-3-ga53ee6b

env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.Version=v0.2.1-3-ga53ee6b" -o dist/joplin2obsidian_darwin_amd64
env CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.Version=v0.2.1-3-ga53ee6b" -o dist/joplin2obsidian_darwin_arm64
# net.bangnimang/joplin2obsidian
/usr/lib/go-1.13/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: unknown parameter  «-pagezero_size»

my operating system ubuntu Linux. 20/04

Hi @supotnitskiy , go-1.13 is too old to compile joplin2obsidian. please follow https://golang.org/doc/install to install the newest version golang development environment.

btw, don't forget to apt purge golang-go first

@supotnitskiy
Copy link

@supotnitskiy supotnitskiy commented Oct 24, 2021

Thanks
ALL Converted

joplin2obsidian v0.2.1-4-g374579c

⠦ Extracting Metadata (24511/-, 14931 it/s) 
⠋ Rebuilding Folders (313/-, 835500 it/s) 
⠸ Rebuilding Articles (5884/-, 4328 it/s) 
⠴ Saving Data (5882/-, 8 it/s)  

Done!

The next step is to open /media/DISK4/obsidian_joplin/ as vault in Obsidian, Then you will see what you want to see.
root@sergei-dom:/home/sergei/joplin2obsidian/dist#

@luxi78 luxi78 closed this Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants