[Gambas-user] upgrade gambas in selected directory (upgrade script)

Daniel Blanch Bataller daniel.blanch.bataller at gmail.com
Fri Jan 12 10:47:28 CET 2018


Thank you very much for your detailed and prompt answer.

Cheers,

D.

> El 12 ene 2018, a las 1:00, Zainudin Ahmad <mail.gambaspi at gmail.com> escribió:
> 
> I have do this when playing gambas with multi version(Recommended way, because this not change any code or string in source code and still use the same libs, environtment and DE).
> 
> # Command Installation for playing Gambas Multi version
> 
> ./reconf-all
>  LLVM_CONFIG=llvm-config-3.5 ./configure -C --prefix=/usr/local/gambas3/3.?.? --quiet
> make --quiet
> sudo make install (if you want to replace you must remove first, rm -r /usr/local/gambas3/3.?.?)
> 
> before run that command change 3.?.? with gambas version what you want to install( like 3.10.90  or 3.8.4.)
> 
> # Create Link
> 
> /usr/local/bin/gambas3 ---> /usr/local/gambas3/3.10.90/bin/gambas3
> /usr/local/bin/gbc3 ---> /usr/local/gambas3/3.10.90/bin/gbc3
> /usr/local/bin/??? ---> /usr/local/gambas3/3.10.90/bin/??? (gbx3, gbi3, gbs3 and other binary/gambas file)
> 
> you must change all link if you want switch to other version.
> 
> # Copy File
> 
> Copy file like desktop file and other to right directory (I hope do you understand what I meant) and just using the newer version(if you have 3.10 and 3.8 installed use 3.10 file).
> 
> # Other
> 
> - Make sure there is no gambas binary (like gbr3,gbx3 and other) in /usr/bin/ directory (remove that binary if exist)
> - Make sure there is no gambas component/library in /usr/lib/gambas3 directory (remove this directory if exist)
> - Don't run gambas3 ide with older or newer version runtime, So gambas3(3.8.4) ide must run with gambas 3.8.4 runtime and component.
> - If you want to install gambas3 like from ppa or ubuntu repo you should remove all link file(like gbr3,gbx3, gambas3 and other) in /usr/loca/bin directory. you can still keep /usr/local/gambas3/* all file :) .
> 
> there is any an issue when you run newer gambas version like 3.10 after that you run gambas 3.6.0 or other, the toolbar looks messy. but you can still use it (I hope gambas have /home/user/.config/gambas3/gambas3.conf in each version like gambas3.10.conf or maybe any better solution).
> 
> good luck.
> 
> On Wed, Jan 10, 2018 at 6:43 PM, Daniel Blanch Bataller <daniel.blanch.bataller at gmail.com <mailto:daniel.blanch.bataller at gmail.com>> wrote:
> HI,
> 
> I would like to 'make install' latest version of gambas in an specific directory, let’s say /opt/gambas/3.10
> 
> moreover I would like to just install the ‘runtime’ not the development enviroment.
> 
> This is because I need to make an upgrade script, so I do have to mantain previous version for a while.
> 
> The idea is to tar.gz the  /opt/gambas/3.10  directory and install it in the destination machine.
> 
> When I do have the newer version I’ll change /usr/bin/gambas3 and others to point to the new version.
> 
> Is there anyway to do so?
> 
> Regards,
> 
> D.
> 
> 
> 
> --------------------------------------------------
> 
> This is the Gambas Mailing List
> https://lists.gambas-basic.org/listinfo/user <https://lists.gambas-basic.org/listinfo/user>
> 
> Hosted by https://www.hostsharing.net <https://www.hostsharing.net/>
> 
> 
> --------------------------------------------------
> 
> This is the Gambas Mailing List
> https://lists.gambas-basic.org/listinfo/user
> 
> Hosted by https://www.hostsharing.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180112/6336fc08/attachment.html>


More information about the User mailing list