Currently i am working on a multi project groovy project with Grails framework. All projects need Grails version 3.1.9 but, a single project which needs Grails version 2.4.3.
i am building a gradle build using bash command from another directory, using that same bash command i want to change Grails version 3.1.9 to 2.4.3
currently i am using below command to change version:
setx -m GRAILS_HOME "E:\Softwares\grails-2.4.3"
but its not working,
when i use %GRAILS_HOME%\bin in path it doesn't recognize grails command . I am new with these bash command, any help.
ERROR: Access to the registry path is denied.
I am working on WINDOWS 7
The best option for managing multiple Grails versions is SDKMAN. If you're running Windows you can run this via some shell emulator like Cygwin, or alternatively there's a Powershell clone posh-gvm that runs on the Windows command line.
Related
As a proof of concept, I successfully built a local Jenkins server on my MacBook (MacOS is Catalina) and the pipeline uses Fastlane scripts to clone, build, and distribute successfully.
Now, I have a Mac Server in our Data Center and I completed the same build-out and installed Jenkins. When I run the same pipeline, it fails, so I tried executing from the command line and it fails with this error:
google-api-client-0.38.0 requires ruby version ~> 2.4
Apparently, my install used ruby 3.0, so I followed recommendations to install rbenv and down level to 2.4. the installers were successful, but still the problem persists and uses ruby 3.0. The paths defined in my profiles look correct.
There are two key differences between my local server and the server in the data center that I can think of that may be influencing this problem:
My MacBook was upgraded to Catalina where the DataCenter iMac was built factory-fresh with Catalina. Note that an Apple version of ruby is installed with Catalina.
I do not have Xcode installed, only the CLI xcode-select version 2373; I would like to keep the IDEs off of this server, so there isn't a temptation to fix code on this dedicated Jenkins server.
Any recommendations to further troubleshoot this installation?
First, you probably will have to install Xcode, to use all of its tools (the CLI won't cut it). I recommend xcode-install to manage xcode versions via CLI. That is one key difference in your setup.
However, there're probably shenanigans with your $PATH environment within Jenkins. From what I understood from your description, you were able to run fastlane normally by invoking it via Terminal, but it won't work in Jenkins, is that right? Check the $PATH in Jenkins and make sure it matches the $PATH in your Terminal. rbenv and other ruby version managers require you to execute some startup code (e.g. eval "$(rbenv init -)" in case of rbenv) before being able to use it, and then setting up the right $PATH is required to make everything work as expected (i.e. have it point at Ruby 2.4 instead of 3.0).
I have eclipse installed on my windows machine, but I can't seem to use it with bash so I installed eclipse on the bash terminal by using "sudo apt-get install eclipse". It installed fine, but I can't figure out how to launch the eclipse GUI from the linux subsystem so I can use it like the windows version. I tried using Xming and exporting DISPLAY, but that didn't work. Any ideas?
from what i understood from the link below, you require to update .bashrc to direct the GUI display to a X Server process. I installed xMing to run X Server from Windows 10. i also had to install gtk components that allowed me to run sublime text GUI from within WSL.
https://medium.com/#pck/how-to-use-sublime-text-3-from-command-line-with-ubuntu-bash-terminal-in-windows-10-subsystems-for-aa2ad59d088c
hope this helps
IMHO you should not install eclipse by apt but simply get your desired eclipse product from from https://www.eclipse.org/downloads/packages , download and unzip it to your wanted location and just start eclipse.
Reasons:
I do not know any Linux distribution containing a newer eclipse bundled, so you are always having older versions being slower and having less features
You can update your eclipse installation directly inside eclipse Check for updates
You can have multiple installations at same time
If you want to get rid of a eclipse installation just remove the folder and you are done.
But of course you can also use bash directly in Windows with Eclipse.
Please look at
https://stackoverflow.com/a/62724163/2590615 or take a glimpse at You Tube Video about Bash Debugging with Bash Editor eclipse plugin on a Windows 10 machine
PS: I am the maintainer of the mentioned eclipse plugin
The SonarQube 5.0 documentation states that in order to install SonarQube on AIX, HPUX or Solaris, one must install Java Service Wrapper, which is licensed software.
Is it possible to do this using some free/open source alternative?
There's a Jsvc library by Apache that is used to accomplish the same functionality. I wonder if anyone has successfully managed to use it.
We haven't documented it yet, but with SonarQube 5.0+, you can start SonarQube using a simple Java process.
Just open a terminal and run:
java -jar <sq_install_dir>/lib/sonar-application-5.0.jar
This should allow you to run SonarQube on Solaris without needing to install anything else.
Whenever I type the word sbt in my cmd I get the following message:
Any help will be appreciated!
The sbt script you use is meant only for Unix environments like Linux or Unix-like environments for Windows like cygwin or mingw.
Please note that you're on Windows so you need the sbt scripts for Windows.
Download the sbt installer for Windows from http://www.scala-sbt.org/download.html. You may consider using Typesafe Activator since it's "a browser-based or command-line tool that helps developers get started with the Typesafe Reactive Platform."
As noted in Under the Covers in the official documentation of Typesafe Activator:
Activator applications use sbt under the covers. This means that
anything you can do in sbt you can do with an application in
Activator. For instance, sbt plugins can easily be added to
applications in Activator just like they would normally be added.
I highly recommend Typesafe Activator.
I use https://chocolatey.org/ to install, so once you follow the instruction and have choco installed, simply run choco install sbt in admin powershell [choose from Windows + X]
Once that is done, open another powershell and simply run sbt.
I am running on Windows 10, and do remember to choco install jdk8 as well.
I'm developing with Grails 2.3.6 in Windows. I prefer Linux so I'm trying to use Cygwin.
However when I run grails.exe from Cygwin ("grails run-app") the hot deployment feature of grails (FileSystemWatcher / GrailsProjectWatcher) does not work: changes I make to source code require me to restart Grails.
Help. :)