SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Mentor bronze trophy
    John_Betong's Avatar
    Join Date
    Aug 2005
    Location
    City of Angels
    Posts
    1,882
    Mentioned
    74 Post(s)
    Tagged
    6 Thread(s)

    Trying to install Golang to an Apache Linux server

    Background:
    I have a background in Windows but unfortunately very little knowledge of Linux and Apache servers.
    I have successfully setup the Windows Golang environment, studied the tutorials and created numerous localhost programs.


    Mission:
    Install http://golang.org/ online to an Apache server
    WiredTree Host support said that Golang can be installed and recommended Linux install:
    http://golang.org/doc/install#bsd_linux


    Remote Server:
    WiredTree Server: i686
    Operating System: Linux
    Apache Version: 2.2.22
    Golang Version: go1.1.2


    Progress:
    Install Log: 2013.11.25
    Downloaded Go Version go1.1.2 for Linux 386
    Extracted all files to Windows 7
    Uploaded all files to ../usr/go/ (is that correct)

    Current $_SERVER['PATH'] => /bin:/usr/bin

    How do I:
    1. Toggle from Apache to Golang
    2. Add "export PATH=$PATH:/usr/local/go/bin" to etc/profile
    3. Create "Hello World"
    Learn how to be ready for The New Move to Discourse

    How to make Make Money Now with a *NEW* look

    Be sure to congratulate Wolfshade on earning Member of the Month for August 2014

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,649
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Which flavor of linux? If you are running on ubuntu I would just use package management -- see https://code.google.com/p/go-wiki/wiki/Ubuntu

  3. #3
    SitePoint Mentor bronze trophy
    John_Betong's Avatar
    Join Date
    Aug 2005
    Location
    City of Angels
    Posts
    1,882
    Mentioned
    74 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by wwb_99 View Post
    Which flavor of linux? If you are running on ubuntu I would just use package management -- see https://code.google.com/p/go-wiki/wiki/Ubuntu
    I do not know what version of Linux is on the server, it does not give any details. Technical Support recommended the link so I assume it is correct.

    I do not know how to use package management.

    What is the Linux equivalent to a Windows batch file that will run the Sudo commands?
    Learn how to be ready for The New Move to Discourse

    How to make Make Money Now with a *NEW* look

    Be sure to congratulate Wolfshade on earning Member of the Month for August 2014

  4. #4
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,649
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    A shell script would be the equivalent.

    That said, I would just use putty to login to the server via SSH and then try to run sudo apt-get install golang -- probaby 65% chance it is a modern version of ubuntu so that should just work. If it isn't it will just say the apt-get command not found (which tells you you are not running Ubuntu or anything else debian based) or package not found. If it says package not found then you might want to try the 2nd set of instructions.

    Now, I took a gander at your host and it seems they are likely running CentOS, which is a flavor of enterprise linux which means there are not apt repositories. But it is ok because you've got yum and you've probably got the EPEL repositories setup so you should be able to just run sudo yum install golang and it will install. If you don't have EPEL ask the hosts and they should be able to hook that up though I have yet to see an EL web server configured without EPEL as so many things depend on EPEL packages.

    The underlying point is that if you are using non-ghetto software and a non-ghetto flavors of linux downloading tarballs and installing manually you are probably doing it wrong.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •