Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

which check #667

Closed
jzacman opened this issue Dec 1, 2024 · 10 comments · Fixed by #670
Closed

which check #667

jzacman opened this issue Dec 1, 2024 · 10 comments · Fixed by #670
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@jzacman
Copy link

jzacman commented Dec 1, 2024

Hi, I have installed yacy in my system but when I tried to run the startYacy.sh file It always returned a message saying that my Java installation was not in PATH. After reinstalling my Java and made sure it was in PATH I studied the .sh file itself and I noticed that it was using the command which. To my surprise I didn't have which installed and that was the hole issue. Once I installed it all worked fine. So my Request is to add a check to the executable to verify if which is installed.

Please.
Salutations.

@okybaca
Copy link
Contributor

okybaca commented Dec 1, 2024 via email

@okybaca
Copy link
Contributor

okybaca commented Dec 2, 2024 via email

@jzacman
Copy link
Author

jzacman commented Dec 2, 2024

Thank you pretty much

$command -v java
/data/data/com.termux/files/usr/bin/java

commnad outputs the same as which
I am installing yacy server in my android phone via termux terminal emulator. Is quite an enjoyable thing.

@okybaca
Copy link
Contributor

okybaca commented Dec 3, 2024 via email

@okybaca
Copy link
Contributor

okybaca commented Dec 13, 2024

try this fix:
#670
does that work for you?

@okybaca
Copy link
Contributor

okybaca commented Dec 13, 2024

I am installing yacy server in my android phone via termux terminal emulator. Is quite an enjoyable thing.

would you write just a few lines mini-howto on how you did get it run on android? so we could put it as an instruction in the documentation...
it's pretty cool to have yacy working on android!

@jzacman
Copy link
Author

jzacman commented Dec 14, 2024

Sure thing okubaca

First download and install termux app in your android device from this link (choose your proper processor architecture)

https://github.com/termux/termux-app/releases

Second open the app and update the repositories and install the latest Java and requirements with this command:

pkg update && pkg upgrade && pkg install openjdk-21 git ant which -y

Then clone the repository and build the application:

git clone --depth 1 https://github.com/yacy/yacy_search_server.git
cd yacy_search_server
ant clean all

To start YaCy, run
./startYACY.sh
Upon starting yacy, the browser must launch the search page automatically. Remember to allow termux to Acquire wakelock by clicking on the notification so it doesn't pause. And for a better experience, open the appropiate port on your router's portforward page.

Stop YaCy on the console with
./stopYACY.sh

Here it is a quick guide. I hope is cool. Have an awesome day.

@okybaca
Copy link
Contributor

okybaca commented Dec 14, 2024 via email

@jzacman
Copy link
Author

jzacman commented Dec 14, 2024

no problem

@okybaca
Copy link
Contributor

okybaca commented Dec 16, 2024

android installation guide docs PR: yacy/yacy_net_homepage#41

which issue fixed in PR: #670

thanks @jzacman !

@okybaca okybaca closed this as completed Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants