You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Zezeng Wang (Jira)" <ji...@apache.org> on 2020/10/15 01:33:00 UTC

[jira] [Commented] (THRIFT-5291) golang tutorial seems broken

    [ https://issues.apache.org/jira/browse/THRIFT-5291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17214357#comment-17214357 ] 

Zezeng Wang commented on THRIFT-5291:
-------------------------------------

Make sure it have automake tool in your computer.
 {code}
sudo apt-get install autotools-dev m4 autoconf* autobook autoconf-archive gnu-standards autoconf-doc libtool
{code}

And do
{code}
./configure
{code}
command to generate makefile first, then use
{code}
make
{code}
command to build the lib.


It isn't a bug.
[README|https://github.com/apache/thrift/blob/master/README.md]
You can also refer to this step to compile the thrift.

> golang tutorial seems broken
> ----------------------------
>
>                 Key: THRIFT-5291
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5291
>             Project: Thrift
>          Issue Type: Bug
>          Components: Go - Library
>    Affects Versions: 0.13.0
>         Environment: Mac OS, Ubuntu 20.04
>            Reporter: Erik
>            Priority: Minor
>         Attachments: image-2020-10-07-23-13-17-967.png
>
>
> I admit, I am a bit new to golang... but not new to thrift.  I am using thrift Servers written in C#, Python, Java... but I would LOVE to look into golang.
> I first started with my own teams .thrift file... but soon realized that I didn't understand golang enough to create the Handler... got lots of errors.
> Plan B - well just spin up the tutorial, right?  Not quite.  I see in the golang tutorial a Makefile.am ... I have tried `autoreconf` `cmake` `make -f` .. none of these worked and there is no getting started read me or hint as to what tool makes this tutorial come together... which would help me then understand what I need to do to finish my own teams .thrift server.
>  
> {code}
> cmake .
>  CMake Error: The source directory "~/go" does not appear to contain CMakeLists.txt.
>  Specify --help for usage, or press the help button on the CMake GUI.
> autoreconf 
>  autoreconf: 'configure.ac' or 'configure.in' is required
> make -f Makefile.am
>  make: *** No rule to make target `/tutorial/tutorial.thrift', needed by `gen-go/tutorial/calculator.go'. Stop.
> {code}
> folder structure is as follows
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)