go-rpio icon indicating copy to clipboard operation
go-rpio copied to clipboard

Never any install documentation??????

Open momiccioli opened this issue 5 years ago • 8 comments

How do you install this library on the PI???????

momiccioli avatar Apr 14 '19 15:04 momiccioli

What do you mean by "install"?

xiegeo avatar Apr 16 '19 19:04 xiegeo

How do I add this library to my GO installation so I can compile with it.  There was a utility for OSX that took care of this.  I would like to compile directly on the Pi.

From: George Xie [email protected] Reply-To: stianeikeland/go-rpio [email protected] Date: Tuesday, April 16, 2019 at 3:54 PM To: stianeikeland/go-rpio [email protected] Cc: Michael Omiccioli [email protected], Author [email protected] Subject: Re: [stianeikeland/go-rpio] Never any install documentation?????? (#44)

What do you mean by "install"?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

momiccioli avatar Apr 16 '19 20:04 momiccioli

This library is go getable. Just import according to the readme file. If you run into any errors, report that.

You only have to install the go development tools, you don't install go libraries.

On Tue, Apr 16, 2019, 1:09 PM Michael Omiccioli, [email protected] wrote:

How do I add this library to my GO installation so I can compile with it. There was a utility for OSX that took care of this. I would like to compile directly on the Pi.

From: George Xie [email protected] Reply-To: stianeikeland/go-rpio [email protected] Date: Tuesday, April 16, 2019 at 3:54 PM To: stianeikeland/go-rpio [email protected] Cc: Michael Omiccioli [email protected], Author < [email protected]> Subject: Re: [stianeikeland/go-rpio] Never any install documentation?????? (#44)

What do you mean by "install"?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stianeikeland/go-rpio/issues/44#issuecomment-483824552, or mute the thread https://github.com/notifications/unsubscribe-auth/AC9egmzod-ggv2PQ1wdwwstcAVysS43Wks5vhi39gaJpZM4cuqqV .

xiegeo avatar Apr 16 '19 22:04 xiegeo

I understand that I use the import statement to pull the library into the go program.  However, there is nothing to tell where the library should be located on my hard drive.  I have tried different locations based on the GOLANG install and the relative PATH but nothing has worked.  People that are new to GOLANG may struggle to figure this out.  I have been in IT for over 30 years.  I have written code on Mainframes to PIs and almost everything in between.  So I am not a noob.  But there is a piece of information missing to get this right.

As I said on my MAC there was a script that took care of this and it worked on the first try.  But not on the Pi.  I find this very frustrating with people developing and posting. They tend to provide “some” use instructions but not deployment instructions.  I don’t mean to complain, hopefully you see my point.  So my question is….

How do I deploy the library to my GOLANG installation on the Pi so that I can compile with it.  You should include this information in your readme. 

From: George Xie [email protected] Reply-To: stianeikeland/go-rpio [email protected] Date: Tuesday, April 16, 2019 at 6:07 PM To: stianeikeland/go-rpio [email protected] Cc: Michael Omiccioli [email protected], Author [email protected] Subject: Re: [stianeikeland/go-rpio] Never any install documentation?????? (#44)

This library is go getable. Just import according to the readme file. If you run into any errors, report that.

You only have to install the go development tools, you don't install go libraries.

On Tue, Apr 16, 2019, 1:09 PM Michael Omiccioli, [email protected] wrote:

How do I add this library to my GO installation so I can compile with it. There was a utility for OSX that took care of this. I would like to compile directly on the Pi.

From: George Xie [email protected] Reply-To: stianeikeland/go-rpio [email protected] Date: Tuesday, April 16, 2019 at 3:54 PM To: stianeikeland/go-rpio [email protected] Cc: Michael Omiccioli [email protected], Author < [email protected]> Subject: Re: [stianeikeland/go-rpio] Never any install documentation?????? (#44)

What do you mean by "install"?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stianeikeland/go-rpio/issues/44#issuecomment-483824552, or mute the thread https://github.com/notifications/unsubscribe-auth/AC9egmzod-ggv2PQ1wdwwstcAVysS43Wks5vhi39gaJpZM4cuqqV .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

momiccioli avatar Apr 18 '19 15:04 momiccioli

That's part of the Go tooling, it depends on the version and environment settings that you use. Every Go project is the same.

If it doesn't work out of the box, you system is miss configured. Instead of telling me how you think it should work, tell me what errors you are seeing when you try to build your project.

On Thu, Apr 18, 2019, 8:47 AM Michael Omiccioli, [email protected] wrote:

I understand that I use the import statement to pull the library into the go program. However, there is nothing to tell where the library should be located on my hard drive. I have tried different locations based on the GOLANG install and the relative PATH but nothing has worked. People that are new to GOLANG may struggle to figure this out. I have been in IT for over 30 years. I have written code on Mainframes to PIs and almost everything in between. So I am not a noob. But there is a piece of information missing to get this right.

As I said on my MAC there was a script that took care of this and it worked on the first try. But not on the Pi. I find this very frustrating with people developing and posting. They tend to provide “some” use instructions but not deployment instructions. I don’t mean to complain, hopefully you see my point. So my question is….

How do I deploy the library to my GOLANG installation on the Pi so that I can compile with it. You should include this information in your readme.

From: George Xie [email protected] Reply-To: stianeikeland/go-rpio [email protected] Date: Tuesday, April 16, 2019 at 6:07 PM To: stianeikeland/go-rpio [email protected] Cc: Michael Omiccioli [email protected], Author < [email protected]> Subject: Re: [stianeikeland/go-rpio] Never any install documentation?????? (#44)

This library is go getable. Just import according to the readme file. If you run into any errors, report that.

You only have to install the go development tools, you don't install go libraries.

On Tue, Apr 16, 2019, 1:09 PM Michael Omiccioli, <[email protected]

wrote:

How do I add this library to my GO installation so I can compile with it. There was a utility for OSX that took care of this. I would like to compile directly on the Pi.

From: George Xie [email protected] Reply-To: stianeikeland/go-rpio [email protected] Date: Tuesday, April 16, 2019 at 3:54 PM To: stianeikeland/go-rpio [email protected] Cc: Michael Omiccioli [email protected], Author < [email protected]> Subject: Re: [stianeikeland/go-rpio] Never any install documentation?????? (#44)

What do you mean by "install"?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/stianeikeland/go-rpio/issues/44#issuecomment-483824552 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AC9egmzod-ggv2PQ1wdwwstcAVysS43Wks5vhi39gaJpZM4cuqqV

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stianeikeland/go-rpio/issues/44#issuecomment-484568556, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXV5AQG6HXILJSNYPYQK3TPRCJ2PANCNFSM4HF2VKKQ .

xiegeo avatar Apr 18 '19 15:04 xiegeo

Not telling you how it should work just how to ensure it can be used.  Before you ask your library is the only thing that does not work everything else is fine.

Here is the compile statement and the error

pi@octomax:~$ go install $GOPATH/gpio.go

Golang/src/gpio.go:7:2: cannot find package "github.com/stianeikeland/go-rpio" in any of:

        /usr/local/go/src/github.com/stianeikeland/go-rpio (from $GOROOT)

        /home/pi/Golang/src/src/github.com/stianeikeland/go-rpio (from $GOPATH)

pi@octomax:~$ echo $GOPATH

/home/pi/Golang/src

pi@octomax:~$ echo $GOBIN

/home/pi/Golang/bin

pi@octomax:~$ echo $GOROOT

/usr/local/go

pi@octomax:~$ ls -l /home/pi/Golang/src/github.com/stianeikeland/

total 80

drwxr-xr-x 4 pi pi  4096 Apr 14 10:15 go-rpio

-rwx------ 1 pi pi 75472 Apr 14 10:15 go-rpio.a

pi@octomax:~$ ls -l /usr/local/go/src/github.com/stianeikeland/

total 80

drwxrwxrwx 4 root root  4096 Apr 14 10:15 go-rpio

-rwxrw-rw- 1 root root 75472 Apr 14 10:15 go-rpio.a

All the files are where the compiler is looking.

From: George Xie [email protected] Reply-To: stianeikeland/go-rpio [email protected] Date: Thursday, April 18, 2019 at 11:57 AM To: stianeikeland/go-rpio [email protected] Cc: Michael Omiccioli [email protected], Author [email protected] Subject: Re: [stianeikeland/go-rpio] Never any install documentation?????? (#44)

That's part of the Go tooling, it depends on the version and environment settings that you use. Every Go project is the same.

If it doesn't work out of the box, you system is miss configured. Instead of telling me how you think it should work, tell me what errors you are seeing when you try to build your project.

On Thu, Apr 18, 2019, 8:47 AM Michael Omiccioli, [email protected] wrote:

I understand that I use the import statement to pull the library into the go program. However, there is nothing to tell where the library should be located on my hard drive. I have tried different locations based on the GOLANG install and the relative PATH but nothing has worked. People that are new to GOLANG may struggle to figure this out. I have been in IT for over 30 years. I have written code on Mainframes to PIs and almost everything in between. So I am not a noob. But there is a piece of information missing to get this right.

As I said on my MAC there was a script that took care of this and it worked on the first try. But not on the Pi. I find this very frustrating with people developing and posting. They tend to provide “some” use instructions but not deployment instructions. I don’t mean to complain, hopefully you see my point. So my question is….

How do I deploy the library to my GOLANG installation on the Pi so that I can compile with it. You should include this information in your readme.

From: George Xie [email protected] Reply-To: stianeikeland/go-rpio [email protected] Date: Tuesday, April 16, 2019 at 6:07 PM To: stianeikeland/go-rpio [email protected] Cc: Michael Omiccioli [email protected], Author < [email protected]> Subject: Re: [stianeikeland/go-rpio] Never any install documentation?????? (#44)

This library is go getable. Just import according to the readme file. If you run into any errors, report that.

You only have to install the go development tools, you don't install go libraries.

On Tue, Apr 16, 2019, 1:09 PM Michael Omiccioli, <[email protected]

wrote:

How do I add this library to my GO installation so I can compile with it. There was a utility for OSX that took care of this. I would like to compile directly on the Pi.

From: George Xie [email protected] Reply-To: stianeikeland/go-rpio [email protected] Date: Tuesday, April 16, 2019 at 3:54 PM To: stianeikeland/go-rpio [email protected] Cc: Michael Omiccioli [email protected], Author < [email protected]> Subject: Re: [stianeikeland/go-rpio] Never any install documentation?????? (#44)

What do you mean by "install"?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/stianeikeland/go-rpio/issues/44#issuecomment-483824552 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AC9egmzod-ggv2PQ1wdwwstcAVysS43Wks5vhi39gaJpZM4cuqqV

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stianeikeland/go-rpio/issues/44#issuecomment-484568556, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXV5AQG6HXILJSNYPYQK3TPRCJ2PANCNFSM4HF2VKKQ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

momiccioli avatar Apr 18 '19 16:04 momiccioli

pi@octomax:~$ go install $GOPATH/gpio.go That's not how anything works.

And how did you get .a files in your src path? I would just nuke everything and restart.

/home/pi/Golang/src/src/github.com/stianeikeland/go-rpio (from $GOPATH) Here is the problem: src/src/. Your gopath should not end in src, otherwise it add another src to it.

Forget everything you knew about linking to libraries and let go tooling do it's magic. https://golang.org/doc/articles/go_command.html#tmp_3

On Thu, Apr 18, 2019, 9:31 AM Michael Omiccioli, [email protected] wrote:

Not telling you how it should work just how to ensure it can be used. Before you ask your library is the only thing that does not work everything else is fine.

Here is the compile statement and the error

pi@octomax:~$ go install $GOPATH/gpio.go

Golang/src/gpio.go:7:2: cannot find package " github.com/stianeikeland/go-rpio" in any of:

    /usr/local/go/src/github.com/stianeikeland/go-rpio (from $GOROOT)

    /home/pi/Golang/src/src/github.com/stianeikeland/go-rpio (from

$GOPATH)

pi@octomax:~$ echo $GOPATH

/home/pi/Golang/src

pi@octomax:~$ echo $GOBIN

/home/pi/Golang/bin

pi@octomax:~$ echo $GOROOT

/usr/local/go

pi@octomax:~$ ls -l /home/pi/Golang/src/github.com/stianeikeland/

total 80

drwxr-xr-x 4 pi pi 4096 Apr 14 10:15 go-rpio

-rwx------ 1 pi pi 75472 Apr 14 10:15 go-rpio.a

pi@octomax:~$ ls -l /usr/local/go/src/github.com/stianeikeland/

total 80

drwxrwxrwx 4 root root 4096 Apr 14 10:15 go-rpio

-rwxrw-rw- 1 root root 75472 Apr 14 10:15 go-rpio.a

All the files are where the compiler is looking.

From: George Xie [email protected] Reply-To: stianeikeland/go-rpio [email protected] Date: Thursday, April 18, 2019 at 11:57 AM To: stianeikeland/go-rpio [email protected] Cc: Michael Omiccioli [email protected], Author < [email protected]> Subject: Re: [stianeikeland/go-rpio] Never any install documentation?????? (#44)

That's part of the Go tooling, it depends on the version and environment settings that you use. Every Go project is the same.

If it doesn't work out of the box, you system is miss configured. Instead of telling me how you think it should work, tell me what errors you are seeing when you try to build your project.

On Thu, Apr 18, 2019, 8:47 AM Michael Omiccioli, <[email protected]

wrote:

I understand that I use the import statement to pull the library into the go program. However, there is nothing to tell where the library should be located on my hard drive. I have tried different locations based on the GOLANG install and the relative PATH but nothing has worked. People that are new to GOLANG may struggle to figure this out. I have been in IT for over 30 years. I have written code on Mainframes to PIs and almost everything in between. So I am not a noob. But there is a piece of information missing to get this right.

As I said on my MAC there was a script that took care of this and it worked on the first try. But not on the Pi. I find this very frustrating with people developing and posting. They tend to provide “some” use instructions but not deployment instructions. I don’t mean to complain, hopefully you see my point. So my question is….

How do I deploy the library to my GOLANG installation on the Pi so that I can compile with it. You should include this information in your readme.

From: George Xie [email protected] Reply-To: stianeikeland/go-rpio [email protected] Date: Tuesday, April 16, 2019 at 6:07 PM To: stianeikeland/go-rpio [email protected] Cc: Michael Omiccioli [email protected], Author < [email protected]> Subject: Re: [stianeikeland/go-rpio] Never any install documentation?????? (#44)

This library is go getable. Just import according to the readme file. If you run into any errors, report that.

You only have to install the go development tools, you don't install go libraries.

On Tue, Apr 16, 2019, 1:09 PM Michael Omiccioli, < [email protected]

wrote:

How do I add this library to my GO installation so I can compile with it. There was a utility for OSX that took care of this. I would like to compile directly on the Pi.

From: George Xie [email protected] Reply-To: stianeikeland/go-rpio [email protected] Date: Tuesday, April 16, 2019 at 3:54 PM To: stianeikeland/go-rpio [email protected] Cc: Michael Omiccioli [email protected], Author < [email protected]> Subject: Re: [stianeikeland/go-rpio] Never any install documentation?????? (#44)

What do you mean by "install"?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/stianeikeland/go-rpio/issues/44#issuecomment-483824552

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AC9egmzod-ggv2PQ1wdwwstcAVysS43Wks5vhi39gaJpZM4cuqqV

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/stianeikeland/go-rpio/issues/44#issuecomment-484568556 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AAXV5AQG6HXILJSNYPYQK3TPRCJ2PANCNFSM4HF2VKKQ

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stianeikeland/go-rpio/issues/44#issuecomment-484583585, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXV5AQMK5RKVGKBSNF2TEDPRCO7PANCNFSM4HF2VKKQ .

xiegeo avatar Apr 18 '19 16:04 xiegeo

If you want to install third party packages you have to enter a console and type go get github.com/stianeikeland/go-rpio

Go get will automatically include the package and you can use it in your Programm

tkuehn1 avatar Feb 20 '20 07:02 tkuehn1