Can't uninstall brew Jenkins - jenkins

Here, I had tried to uninstall as:
joseluisbz#Joses-MacBook-Pro ms-firmascontratos-neg % brew services stop jenkins-lts
Stopping `jenkins-lts`... (might take a while)
==> Successfully stopped `jenkins-lts` (label: homebrew.mxcl.jenkins-lts)
joseluisbz#Joses-MacBook-Pro ms-firmascontratos-neg % brew uninstall jenkins-lts --force
joseluisbz#Joses-MacBook-Pro ms-firmascontratos-neg % brew cleanup
Warning: Skipping azure-cli: most recent version 2.41.0 not installed
Warning: Skipping libffi: most recent version 3.4.3 not installed
Warning: Skipping python#3.10: most recent version 3.10.8 not installed
Warning: Skipping python#3.9: most recent version 3.9.15 not installed
Warning: Skipping readline: most recent version 8.2.1 not installed
Warning: Skipping sqlite: most recent version 3.39.4 not installed
Warning: Skipping torsocks: most recent version 2.4.0 not installed
Warning: Skipping xz: most recent version 5.2.7 not installed
joseluisbz#Joses-MacBook-Pro ms-firmascontratos-neg % brew info jenkins-lts
==> jenkins-lts: stable 2.361.2 (bottled)
Extendable open-source CI server
https://www.jenkins.io/index.html#stable
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/jenkins-lts.rb
License: MIT
==> Dependencies
Required: openjdk#17 ✔
==> Caveats
Note: When using launchctl the port will be 8080.
To restart jenkins-lts after an upgrade:
brew services restart jenkins-lts
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/openjdk#17/bin/java -Dmail.smtp.starttls.enable=true -jar /opt/homebrew/opt/jenkins-lts/libexec/jenkins.war --httpListenAddress=127.0.0.1 --httpPort=8080
==> Analytics
install: 5,868 (30 days), 18,646 (90 days), 67,662 (365 days)
install-on-request: 5,871 (30 days), 18,647 (90 days), 67,670 (365 days)
build-error: 0 (30 days)
joseluisbz#Joses-MacBook-Pro ms-firmascontratos-neg %
But, When I restarted my macOS... ohhh Again is running
Some clue, in order to remove it (I know deleting folder)?

Related

Unable to Upgrade Dart SDK from 2.18.7 to 2.19.0 using Homebrew

I am trying to upgrade my Dart SDK from 2.18.7 to 2.19.0 using homebrew formula brew upgrade dart.
However, the command always returns the same result
Warning: dart-lang/dart/dart 2.18.7 already installed.
brew info dart command shows:
==> dart-lang/dart/dart: stable 2.18.7, HEAD
SDK
https://dart.dev
Conflicts with:
dart-beta (because dart-beta ships the same binaries)
/usr/local/Cellar/dart/2.18.7 (921 files, 497MB) *
Built from source on 2023-01-29 at 02:33:36
From: https://github.com/dart-lang/homebrew-dart/blob/HEAD/Formula/dart.rb
==> Options
--HEAD
Install HEAD version
==> Caveats
Please note the path to the Dart SDK:
/usr/local/opt/dart/libexec
I also have tried:
brew uinstall dart<br>
brew install dart<br>
brew upgrade dart
brew upgrade dart --devel --force
resulting `Error: invalid option: --devel`
Please, kindly suggest me any other solutions that could help.
The issue occurred as the homebrew formula for dart 2.18.7 is missing in the homebrew core formula commit history:
https://github.com/Homebrew/homebrew-core/commits/master/Formula/dart-sdk.rb
However, my dart version upgraded to 2.18.7 from 2.18.6 by an unintentional brew upgrade command resulting the issue.

Installing Ruby with rbenv on Arm Mac (M1 Chip) giving errors

I'm having a few issues with installing Ruby 2.6.6 using rbenv on the Arm Mac (M1 Chip), which works for my teammate, who has an intel processor. I've tried these solutions (1, 2, & 3) to no avail.
Error log:
To follow progress, use 'tail -f /var/folders/rb/hwbl5pxd5zs4gzzx5pdljhjw0000gq/T/ruby-build.20221014163104.57025.log' or pass --verbose
Downloading ruby-2.6.6.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.6.tar.bz2
Installing ruby-2.6.6...
ruby-build: using readline from homebrew
BUILD FAILED (macOS 12.6 using ruby-build 20221004)
Inspect or clean up the working tree at /var/folders/rb/hwbl5pxd5zs4gzzx5pdljhjw0000gq/T/ruby-build.20221014163104.57025.x3LvP2
Results logged to /var/folders/rb/hwbl5pxd5zs4gzzx5pdljhjw0000gq/T/ruby-build.20221014163104.57025.log
Last 10 log lines:
transform_mjit_header: SKIPPED to transform __inline_isfinitel
transform_mjit_header: SKIPPED to transform __inline_isfinited
transform_mjit_header: SKIPPED to transform __inline_isfinitef
transform_mjit_header: SKIPPED to transform __darwin_fd_clr
transform_mjit_header: SKIPPED to transform __darwin_fd_set
transform_mjit_header: SKIPPED to transform __darwin_fd_isset
transform_mjit_header: SKIPPED to transform __darwin_check_fd_set
transform_mjit_header: SKIPPED to transform __sputc
transdb.h updated
ln -sf ../../../.ext/include/-darwin21/rb_mjit_min_header-2.6.6.h include/ruby-2.6.0/-darwin21/rb_mjit_min_header-2.6.6.h
From my research it seems related to OpenSSL. However, I think I have the proper version.
On running brew list I get:
==> Formulae
autoconf c-ares icu4c libevent libnghttp2 lz4 mysql openssl#1.1 python#3.10 ruby six zlib
awscli ca-certificates jq libffi libuv m4 node pkg-config rbenv ruby-build sqlite zstd
brotli gdbm libcbor libfido2 libyaml mpdecimal oniguruma protobuf readline saml2aws xz
==> Casks
google-cloud-sdk
And on running brew info openssl I get:
==> openssl#3: stable 3.0.5 (bottled) [keg-only]
Cryptography and SSL/TLS Toolkit
https://openssl.org/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/openssl#3.rb
License: Apache-2.0
==> Dependencies
Required: ca-certificates ✔
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/opt/homebrew/etc/openssl#3/certs
and run
/opt/homebrew/opt/openssl#3/bin/c_rehash
openssl#3 is keg-only, which means it was not symlinked into /opt/homebrew,
because macOS provides LibreSSL.
==> Analytics
install: 159,362 (30 days), 444,743 (90 days), 1,589,438 (365 days)
install-on-request: 99,536 (30 days), 319,581 (90 days), 1,219,775 (365 days)
build-error: 4,303 (30 days)
Could you confirm that my assumptions are correct?
I'll be grateful for any help on these issues. Thank you!
Moving away from 2.6.6 to 2.7.6 seemed to have worked! So rbenv install 2.7.6 is what it came down to. In any case, 2.6.6 seemed to have some security issues, so better to update.
In my case my shell was using x86_64 instead of ARM architecture. So I did arch -arm64 rbenv install 2.7.6

Can't install pandoc in OS X 10.7.5 using Homebrew

I just installed Homebrew on Lion 10.7.5 (it did complain that it is not supported, so I am aware that this may be the reason). I tried to install pandoc, and apparently cryptonite is causing problems.
~ $ brew install pandoc
Warning: You are using macOS 10.7.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Using the sandbox
==> Downloading https://hackage.haskell.org/package/pandoc-1.18/pandoc-1.18.tar.
Already downloaded: /Users/username/Library/Caches/Homebrew/pandoc-1.18.tar.gz
==> cabal sandbox init
==> cabal update
==> cabal install --jobs=4 --max-backjumps=100000 --only-dependencies --constrai
Last 15 lines from /Users/username/Library/Logs/Homebrew/pandoc/03.cabal:
Installed pandoc-types-1.17.0.4
Downloading texmath-0.8.6.7...
Configuring texmath-0.8.6.7...
Building texmath-0.8.6.7...
Installed texmath-0.8.6.7
cabal: Error: some packages failed to install:
connection-0.2.6 depends on cryptonite-0.20 which failed to install.
cryptonite-0.20 failed during the building phase. The exception was:
ExitFailure 1
http-client-tls-0.3.3 depends on cryptonite-0.20 which failed to install.
tls-1.3.8 depends on cryptonite-0.20 which failed to install.
x509-1.6.4 depends on cryptonite-0.20 which failed to install.
x509-store-1.6.2 depends on cryptonite-0.20 which failed to install.
x509-system-1.6.4 depends on cryptonite-0.20 which failed to install.
x509-validation-1.6.5 depends on cryptonite-0.20 which failed to install.
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/Homebrew/homebrew-core/issues
Warning: You are using macOS 10.7.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
I hope I can install pandoc on 10.7.5. This is a MBP early 2011 with 4 GB RAM. Newer versions run very slowly, so I'd prefer not to upgrade from Lion, unless I have to.
UPDATE: I ended up upgrading to Mavericks. Everything worked just fine (some hiccups, nothing major). Homebrew installed fine, then pandoc was installed with Homebrew and now everything is humming.
Inspired by https://discourse.brew.sh/t/how-to-install-old-version-of-a-formula, I found a workaround.
As Homebrew doesn't offer Pandoc < 2.0 anymore, we need to sneak it into the current formula like so:
$ cd "$(brew --repo homebrew/core)"
In Formula/pandoc.rb, replace the contents of url with https://hackage.haskell.org/package/pandoc-1.19.2.4/pandoc-1.19.2.4.tar.gz and the contents of sha256 with bbe08c1f7fcfea98b899f9956c04159d493a26f65d3350aa6579aa5b93203556
Now you can install Pandoc: $ brew install pandoc.

brew upgrade <package> does not update to the latest version

I've noticed this happening a few times but this most recent instance is with wp-cli Running brew upgrade wp-cli does not download the latest version.
$ brew upgrade wp-cli
Error: homebrew/php/wp-cli 0.20.1 already installed
$ brew info wp-cli
homebrew/php/wp-cli: stable 0.20.1, HEAD
A set of command-line tools for managing WordPress installations.
http://wp-cli.org/
/usr/local/Cellar/wp-cli/0.20.1 (2635 files, 15M) *
Built from source
From: https://github.com/Homebrew/homebrew-php/blob/master/Formula/wp-cli.rb
Note the version is 0.20.1. When I check the formula repo, I see,
head "https://github.com/wp-cli/wp-cli.git"
When I check that repo, I see that the version in the master branch is 0.24.0. brew info and wp --version both return 0.20.1. Why isnt Homebrew grabbing the latest version? How do I force it to get the latest?
You'll need to run brew update first to force brew to update its list of formulae.

Homebrew keeps telling me to update but it does not let me update

$ brew doctor
Warning: Your Homebrew is outdated
You haven't updated for at least 24 hours, this is a long time in brewland!
Then:
$ brew update
$ brew --config
HOMEBREW_VERSION: 0.9
HEAD: (none)
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit sandybridge
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 4.3.2
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2335
Clang: 2.1 build 163
MacPorts or Fink? false
X11: /usr/X11
System Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Which Perl: /usr/bin/perl
Which Python: /usr/local/bin/python => /System/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
Which Ruby: /Users/luis/.rvm/rubies/ruby-1.9.2-p318/bin/ruby
This happend in my other mac and I when I brew upgrade brew outdated nothing happened.
I am afraid this will do the same even dough is a new installation.
how can I fix this?
Instead of using brew upgrade did you tried using brew update. It solved the problem for me.
There are differences between brew update and brew upgrade
brew update
Updates your local database of available (and no longer available) installable packages otherwise know in brew terminology as Formulae.
brew upgrade
Updates all the installed packages on your system currently. E.g. Upgrading PHP 5.3.20 to 5.3.21.
I don't see an error after you try to update, if you update and then run brew doctor again and it doesn't show the out of date error anymore then you are fully up to date.

Resources