Menu

Install GCB on Linux Mint 19.2

mmotte
2019-11-17
2020-09-23
  • mmotte

    mmotte - 2019-11-17

    I have run GreatCowBasic on ubuntu 12.04 years ago and it did great doing a gps project and sideral clock. Then the PC crashed and I never rebuilt it. Recently I saw Stan having trouble with putting GCB on Mint and I was at a hamfest where I bought a Dell 990 and a copy of Mint 19.2 . Mint runs sweet, look and feel are simlar to windows. I have been around linux/Unix for 40 years and know some of the commands , but no expert.

    I downloaded the Freebasic and the supporting files and installed ... lickety split! type fbc and it shows the options
    I downloaded GreatCowBasic for linux UnRARed it using archive. I had a time remembering the password but finally found it.
    Found you had 3 shell scripts install.sh and 1 was for Linux.(not in the website instructions) did chmod to make executable. read the instructions and got into the source directory
    No bananna!

    mmotte@mmotte-OptiPlex-990:~/GreatCowBASIC/sources$ sudo  linuxbuild/install.sh install
    [sudo] password for mmotte:       
    
    Great Cow Basic generic Linux installer, Version 0.6
    
    gcbasic does not exist. Cannot install.
    

    I have deleted greatcowBasic dir, re downloaded, re unrared, re chmod, rerun sh script .

    Any insight? suggestions?

    thanks
    Mike

     
  • mmotte

    mmotte - 2019-11-18

    removed GreatCowBASIC dir and un RaRed the GCB download again.

    Did more reading in the readme found found out I was supposed to build it before installing it.
    Now this:

    mmotte@mmotte-OptiPlex-990:~$ ls
    Desktop    FreeBASIC-1.07.1-ubuntu-18.04-x86_64  Pictures    Templates
    Documents  GreatCowBASIC                         Public      Videos
    Downloads  Music                                 readme.txt
    mmotte@mmotte-OptiPlex-990:~$ cd GreatCowBASIC
    mmotte@mmotte-OptiPlex-990:~/GreatCowBASIC$ cd sources
    mmotte@mmotte-OptiPlex-990:~/GreatCowBASIC/sources$  ./install.sh build
    
    Great Cow Basic generic Linux installer, Version 0.6
    
    gcbasic.bas does not exist. Cannot continue.
    Files required are:
    gcbasic.bas assembly.bi preprocessor.bi utils.bi variables.bi
    mmotte@mmotte-OptiPlex-990:~/GreatCowBASIC/sources$ ls
    assembly.bi   gcbasic.bas        install.sh       utils.bi
    darwinbuild   gcbasic.fbp        linuxbuild       variables.bi
    freebsdbuild  greatcowbasic.acp  preprocessor.bi
    

    Yes , I copied the install.sh to the sources dir.
    And gcbasic.bas is not missing.
    Looking at edit install.sh to see how it works.

    Still pounding away!
    Mike

     
  • mmotte

    mmotte - 2019-11-19

    Installation success!

    My mistake was trying to run the Linuxbuild shell script from the wrong directory, thinking i was following the directions.

    Installed avrdude from sofware manger, no problem.

    Now to hook up piccmd for PICKIT2, It is downloaded.

    I am going to use gedit instead of geany for now. I have used it before.

    Mike

     
    • Anobium

      Anobium - 2019-11-19

      Signing you up for the Linux PICkitPlus!!!

       
  • stan cartwright

    stan cartwright - 2019-11-19

    mmotte...Hi sir. My route was get freebasic installed from a link...not gcb link.
    Then get gcb install zip/tar whatever...click the file and unzip/tar.
    look for build file...lot's of fun. Get freebasic to compile it then pee around with a script and bobs your uncle...totally a cake walk .....not! it's a pain in the bottom to sort it. I want to physically damage my pc...well,not really but

    I should not be using linux mint because I got 4gig of ddr3 today and win 10 flies like mint...but I like mint.

    Please keep linux gcb open topic....not for me..honest, but for others.
    Well for me to be honest... I'm a selfish cult

    I haven't got it working with geany but command line works.
    Flashing it is something to do using linux.

    I spend more time messing with gcb linux than writing gcb code which is negative productivity and not why I use gcb...Why do I try when gcb works fine under windows?
    answers on a postcard to

    mmotte keep in touch re gcb linux please....I don't want to suffer alone :)

     
  • stan cartwright

    stan cartwright - 2019-11-19

    mmotte....mint 19.2 is very much like windows as far as using the gui. Lots of similarities in using the mouse and shift key. The cinnamon gui is very win like. I like it lots.
    But this is about gcb and although it works with a terminal command,
    getting it to work with geany I can't grasp.
    I remember gcb win was lots of commands you remmed out or unremmed to work in the programmer options...just when you thought you'd worked it out and it changed..arghh!
    For the better I think but those commands were important for a better understanding of the programming command which gcb programmer is only an interface/medium.

    I don't know how many people are interested in gcb under linux.
    I imagine the gcb team developers have their priorites and don't know how it relates to linux distributions.

    Please keep in touch, anyone using linux
    regards, stan

     
  • stan cartwright

    stan cartwright - 2019-11-19

    I have posted picture of gcb working under linux fron command line so not joking.it works.
    mmotte..you now have a working linux gcb like me. Why can't we publish them to save people the hassle you and me been through?
    using gcb under linux is lonely.
    I was thinking of ili9341 missile command as a game demo.
    How to use arrays..I love them.There'll be boat loads of them :) something I'm good at.

     

    Last edit: stan cartwright 2019-11-19
  • Anobium

    Anobium - 2019-11-20

    In the context that I do not follow the Linux installation threads.

    Simple question. Are the instructions in the Help wrong? If yes - Can someone revise and improve them? I cannot do this as I am not spinning Linux to find the instructions are wrong. If no - what is the root cause of issue and how do the Linux experts resolve?

     
  • stan cartwright

    stan cartwright - 2019-11-20

    In some examples you will see cd ~/....... which says bat. file not found.
    In other example gcb installs cd /.... is used which does change the directory.
    If one is a linux user then you could get bed's gcb linux installation guide to work
    but it uses scripts that fail...well for me.
    There's not much in the way of help installing gcb on linux if you do a search. Some of the results are years old and outdated.

    Once it's installed you might like a gui. There's a few program editors but searching for gcb compatability won't show much.

    Users post mac os scripts which while appreciated, don't help me.

    I wouldn't be too concerned Evan. If more people used gcb and linux then I'd have thought there would be more feedback on the forum.
    So it's a minority of gcb users that use linux or other linux users didn't have any problems installing/using gcb on linux.

     
  • mmotte

    mmotte - 2019-11-20

    I wish there was a simple answer.
    "Are the instructions in the Help wrong?" First of all your don't find these instructions coming from the linux download page. They are included in the download but are not in the "documention" directory either. So you have to be inquisitive enough to drill down through "sources" and "linuxbuild". Or how do I know the instructions are at the bottom of the Home-GreatCow web page , in the Help down there and scroll down to Linux? Just Not apparent.

    fbc downloaded and installed easily. You needed to read the wiki instructions to know to also download the libncurses and libc?

    Download GreatCowBasic for Linux then used Mint archive tool to extract. Why put GreatCow in the "downloads" directory? Oh I did have to look for the password to UNRAR for an hour+, because I thought it was "gcb" but actually was capiltalized. Thank you Stan.

    The shell script "install.sh" must be executed from a specific place and even then it don't immeditely work. I had to adjust one directory change to make it work for me. It may not be wrong but it is specific for a certain build.

    You can not do the install from the "Windows" desktop. You must be able to use console/terminal. Once your there you need basic ability to move between directories, list files, change permissions, copy files with permissions, some need root priviledges "SUDO". Our friend Google helps alot with these commands. It is a separate learning experience. One useful thing I did not know after years of Unix use or maybe forgot is to change directory to a gobblygook long name directory you only need enough letters to make it unique, ie cd FreeBASIC-1.07.1-ubuntu-18.04-x86_64 but you only need cd F* . asterisk is wildcard.

    I have yet to do a complete cycle of compile and burn. I have all the pieces working now. Lastnight I got the pk2cmd talking to the pk2kit. Yes, more usb libraries were neccessary.

    That all for now. I will think about how we can make this simpler.
    73
    Mike

     
  • Anobium

    Anobium - 2019-11-20

    Sharing my thoughts.

    "Are the instructions in the Help wrong?" First of all your don't find these instructions coming from the linux download page. They are included in the download but are not in the "documention" directory either. So you have to be inquisitive enough to drill down through "sources" and "linuxbuild". Or how do I know the instructions are at the bottom of the Home-GreatCow web page , in the Help down there and scroll down to Linux? Just Not apparent.

    See https://github.com/Anobium/Great-Cow-BASIC-Help/blob/master/source/linuxoverview.adoc That could included somewhere in the distribution.

    fbc downloaded and installed easily. You needed to read the wiki instructions to know to also download the libncurses and libc?

    No comment.

    Download GreatCowBasic for Linux then used Mint archive tool to extract. Why put GreatCow in the "downloads" directory? Oh I did have to look for the password to UNRAR for an hour+, because I thought it was "gcb" but actually was capiltalized. Thank you Stan.

    Not sure what this is. But, sounds resolveable.
    The password. Is needed to protect the IPR. If the Help were in a better place that would resolved.

    The shell script "install.sh" must be executed from a specific place and even then it don't immeditely work. I had to adjust one directory change to make it work for me. It may not be wrong but it is specific for a certain build.

    Sounds like the Help needs an update.

    You can not do the install from the "Windows" desktop. You must be able to use console/terminal. Once your there you need basic ability to move between directories, list files, change permissions, copy files with permissions, some need root priviledges "SUDO". Our friend Google helps alot with these commands. It is a separate learning experience. One useful thing I did not know after years of Unix use or maybe forgot is to change directory to a gobblygook long name directory you only need enough letters to make it unique, ie cd FreeBASIC-1.07.1-ubuntu-18.04-x86_64 but you only need cd F* . asterisk is wildcard.

    Sounds like the Help needs an update

    I have yet to do a complete cycle of compile and burn. I have all the pieces working now. Lastnight I got the pk2cmd talking to the pk2kit. Yes, more usb libraries were neccessary.

    Sounds like the Help needs an FAQ to provide this information.


     
  • mmotte

    mmotte - 2019-11-20

    "The password. Is needed to protect the IPR. If the Help were in a better place that would resolved."

    Where is the password available from Normally?
    I had to search the Forum to find in a post.

     
  • Anobium

    Anobium - 2019-11-20

    "The password. Is needed to protect the IPR. If the Help were in a better place that would resolved."

    Where is the password available from Normally?
    I had to search the Forum to find in a post.

    The password is shown in the Linux download folder. Well it should be. The file was overwritten in June 19 update. Really sorry. I checked the 0.98.05 folders in SVN and the file was there.... so, I have uploaded again. When SourceForge refeshes the folders - it will display the information.

     
  • d crumley

    d crumley - 2020-09-22

    The instructions for linux are incomplete. They say to extract the rar, ... ,then run ./install install That will fail. You must cd to linuxbuild folder (under sources), run ./install.sh build first and then run ./install.sh install
    Also for me the /opt folder does not exist (linux mint), so I changed the install.sh 'exe' folder path to /usr/local/sbin/GCBASIC

     
    • Anobium

      Anobium - 2020-09-22

      @D Crumley

      Thank you - if you update the instructions and attach here then I can update the master distro.

       
  • stan cartwright

    stan cartwright - 2020-09-23

    I posted about installing gcb on a rasperry pi...which use debian linux...or other os if you want.
    Someone replied "why bother?"
    Well if gcb could use the gpio pins then a small powerful developement system.
    but then freebasic runs on rpi and there's an include for gpio.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.