View Single Post
  #9   (View Single Post)  
Old 16th July 2016
Nureo Nureo is offline
Sam98
 
Join Date: May 2016
Posts: 24
Thumbs up

Hello guys. Well, certainly, thanks for all your answers. I really appreciate your time and your dedication.

Please, remember that my first language is not english, so, I can read the man pages and the FAQ, but is normal that some details can't be noted for me. Also, I must say that english is not the most precise language in this world, and also some developers are not good redactors. I mean, is not for speak bad about OpenBSD and the developer team, is just a fact: there are a lot of people who has problems like I had in this issue, and man pages don't always offer precise answers for that.

I really like OpenBSD, so I will ask some things that maybe for you can sound stupid. Sorry, is not my intention to bored you.

In my country we are in a serious danger, so, some people is using more secure systems. I need time to learn. Here expression mediums are being censured (TV, internet, etc.), we have a government who is torturing political prisoners, and there are many forms of political persecution (special programs for spy people).

I will answer by parts:

To TronDD, about “You need to specify the full path to java. /usr/local/bin/jre-1.8.0/bin/java -jar i2pinstall_0.9.26.jar

Thanks, I didn't know that. I suppose that Java will have an automatic “user” configuration.

To jggimi, about “You certainly can. These port directories are several of the 69 build dependencies of jdk 1.8. That's the number. 69 different packages must be installed, and that can mean built and installed, before you can start to build jdk and jre 1.8.

Perfect, I will delete them.

About “No, you may delete it. It is used to prevent multiple builds of the same package when conducting concurrent bulk builds.

Well, I prefer to preserve it then.

About “I'll repeat what I said above about $PATH, and try to add clarity.

When you issue the shell command:

$ echo $PATH

a string will appear, which is the contents of your $PATH environment variable.

That string contains a list, in order, of the directories the shell will search for executable files if you type the name of a program without a complete path. For example, if you type the ls(1) command:

$ ls

your shell will use your $PATH variable, and it will find the ls(1) program in the /bin directory.

You could also type the command this way, with the directory named, and if you do so the $PATH variable will not be used:

$ /bin/ls

If you want to run the java program from jre 1.8, here are two ways:

$ /usr/local/jre-1.8.0/bin/java ...

If you add /usr/local/jre-1.8.0/bin to your $PATH variable, you could then use:

$ java ...

See your .profile file in your user's home directory, where $PATH variables are commonly set.


Thanks a lot for that! Really helpful!

About “Most users who build ports find that they need to add a new partition from unallocated disk space for /usr/ports, or for the working object directory, /usr/ports/pobj. To do so requires you have unallocated space, and this is is beyond the scope of a thread focused on getting your shell to search for and find the java executables you already have installed.Most users who build ports find that they need to add a new partition from unallocated disk space for /usr/ports, or for the working object directory, /usr/ports/pobj. To do so requires you have unallocated space, and this is is beyond the scope of a thread focused on getting your shell to search for and find the java executables you already have installed.

Well, I will think if I take the risk. Thank you!

To ocicat, about “Nureo, since we are not there, we can only go from what you post, & we don't have sufficient information to answer all of your questions.

Sorry about the long list of questions. That is why I copied all I saw in the directory. But don't worry, it gaves a good result: “No, you may delete it. It is used to prevent multiple builds of the same package when conducting concurrent bulk builds.” (by jggimi)

About “First of all, if you have been able to successfully install either devel/jdk/1.7, or devel/jdk/1.8 from a mirror site, I don't see the point of trying to build the corresponding port. If you are concerned about the inability to execute the java binary mentioned earlier, it is unclear whether you have done anything to find its location. Building a local port of the same package is not going to change this situation.

That is because I saw in some places that i386 architecture has problems with some prebuild packages. Example: I found an answer about some user who has a problem with a prebuild package, and other user recommend him to build it from ports. So, I just try from ports because I saw that “Java” command didn't work.

I suppose it was because a configuration problem, or some dependencies uncompleted. If I would tried with ports I will have dependencies covered with the port configuration. Am I being clear? Do I?

About “..as we had already determined from earlier information. Unless you minimally modify the path set in ~/.profile, or supply all information in the command issued, you will get the error stated above. Depending upon what library classes are required, you will need to also set CLASS_PATH & possibly other environment variables I discussed earlier. It is unclear whether you have figured out what the values needed should be, nor setting them such that the Java environment knows where all necessary parts are located.

Again, but for you this time. I didn't know that the prebuild package will not be configured to work instantaneously. Also I saw this video (like an orientation), and there was not a “PATH moment”. Also the I2P page was not of help at all.

About “To resize a partition, study the growfs(8) manpage, but this is dependent upon have empty space which is adjacent to the partition you wish to enlarge. My suspicion is that you have insufficient space allocated in several partitions. Depending upon how large your hard drive is, you may not have sufficient space to be building ports, but I don't know what is the size of your hard drive. I suspect you need to reinstall OpenBSD altogether in order to resize several partitions correctly, but I question if this really is the most important set of tasks you should be pursuing at this point.

Well, I hope not need to reinstall OpenBSD again. When I used the Installer, I did choose “Auto layout”.

About “Here are my recommendations:

- Stop trying to build either the devel/jdk/1.7 & devel/jdk/1.8 ports for now. It appears that you are new to OpenBSD, compiling, port building, & there are a lot of things in which you need familiarity to proceed. Again, study Section 15 of the FAQ before proceeding down this path.

- It sounds like you already have the JDK package installed from a mirror. Finish configuring java as I described before.


Ok. Thanks, I wont. I just will do the PATH.

About “Fundamentally, you are asking us for support to build & configure an application which has not previously been officially ported to OpenBSD. As you can already see, there are a lot of issues you are running into where it is unclear whether we really understand what you are doing, nor whether our comments are really being helpful to you. As you can already see, we can each spend a lot of time going back & forth, & it is unclear whether this is currently productive.

It is true on I2P, not about Java. But the fundamental problem was in Java. Thanks any way. You was really helpful!

About “While building this application may legitimately be a worthy goal for you, maybe you should be building your skill set in OpenBSD, understanding how the different pieces fit together, first. Smaller steps may be in order.

Thanks for the advice. I will take it, and I will be prepared for ask you about potential problems! You always are one on the first in response! I really appreciate that ocicat.

Thank you all! I will give you an answer with my results!

Last edited by Nureo; 16th July 2016 at 07:07 AM. Reason: Bad writed word.
Reply With Quote