|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|
|||
Compiling message: "write failed, file system is full"?
Well, this is a long story. I started trying to install Java for OpenBSD 5.9 (i386), needed for I2P.
I tried with packages, jde and jdk. They were installed fine. But, when I did put: Quote:
It didn't work Well, the last option I tried: ports. When I tried to # make Java, I didn't finish well (full file system?). Well, I probed with midori (on ports), just for know if it was a singular or a general problem. Yes, it was general: full file system. It says: Quote:
|
|
|||
Hi! Thanks for your help! I thought that was normal, but I do that part of the question because there are new users in OpenBSD.
I get into > Quote:
· asm-3.3.1 · gmake-4.1 · groff-1.22.3 · jdk-1.7.0.80 · locks · midori-0.5.11 I deleted “midori-0.5.11” and “jdk-1.7.0.80”. Should I delete all of them? Or some more than I did? Is “locks” an untouchable directory? What happen if I delete it? Look: Quote:
When I tried to execute “java -jar i2pinstall_0.9.26.jar” or “java -jar i2pinstall_0.9.26.jar -console” to install I2P, it didn't work. It says: "ksh: java: not found". Take a look here, please. How do I move the "ports/compiling" place to another directory outside of /usr/. Would it work if I just move /usr/ports/ to /home (for example)? Like: /home/ports I don't know how to resize /usr/, but I think that is not a convenient idea. |
|
|||
Quote:
/usr/local/bin/jre-1.8.0/bin/java -jar i2pinstall_0.9.26.jar |
|
|||||
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.
Quote:
Quote:
Quote:
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. Quote:
Quote:
|
|
||||
Quote:
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. Quote:
Quote:
Quote:
Here are my recommendations:
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. Last edited by ocicat; 16th July 2016 at 04:45 AM. Reason: correct grammar... |
|
|||
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. |
|
|||
I don't know if OpenBSD is so a secure system for someone new to Unix-like systems and configuring daemons and need to do something fast and needs various programs not found in base OpenBSD system. Unfortunately OpenBSD does not provide binary updates and security is a process, so one must update constantly because all usable systems (Windows, Gnu/Linux, Android, OS X, OpenBSD etc) have security vulnerabilities.
For professionals or people just wanting to be power users OpenBSD is really good, but if somebody is new and don't have time to learn and maintain I would go for binary Gnu/Linux distro like Debian stable, because it is less time consuming to maintain. Note that even in Debian you need to learn a few things, not type something blind on keyboard or blindly copy-paste from unofficial Internet source and maintain system and do backups etc. Note that for people using Tor there is a Tails operating system (Gnu/Linux distro), but it is designed to be run as LiveCD, so it is not so good for all use cases. *** Anyway I was able to execute I2P on OpenBSD. You should note that I don't use I2P on daily basis, so I don't have much experience. # is a sign that command is to be launched by root user and $ by normal user. I have that package: Code:
# pkg_info | grep jre jre-1.8.0.72p0v0 OpenJDK Runtime Environment v1.8.0.72 Code:
# pkg_add jre-1.8.0.72p0v0 Code:
# find /usr/local/ | grep -i -e \/java$ -e \/javac$ 1>/wyniki_java.txt Code:
# cat /wyniki_java.txt /usr/local/include/google/protobuf/compiler/java /usr/local/lib/gcc/x86_64-unknown-openbsd6.0/4.9.3/plugin/include/java /usr/local/jre-1.8.0/bin/java Code:
$ export PATH="/usr/local/jre-1.8.0/bin/:${PATH}" Code:
$ java -version ** Now about executing I2P's installer. I have downloaded installer for Gnu/Linux which is a jar file I should check by checksum and signing keys if it was not modified during downloading, but I didn't do that. In terminal I have gone to directory where I downloaded file. Code:
cd /path/where/i/downloaded/jar/ Code:
$ ls i2pinstall_0.9.26.jar Code:
$ java -jar i2pinstall_0.9.26.jar Code:
$ java -jar i2pinstall_0.9.26.jar -console Code:
$ cd ${HOME}/i2p Code:
$ runplain.sh http://127.0.0.1:7657/home
__________________
Signature: Furthermore, I consider that systemd must be destroyed. Based on Latin oratorical phrase |
|
||||
Storage Management
Briefly:The automatic partition sizes are set based on the size of the drive and the amount of RAM in the computer. The specifics are described in the AUTOMATIC DISK ALLOCATION section of the disklabel(8) man page.
Your list of mounted filesystems, their size, and current usage percentages can be found with the df(1) command. $ df -h should help you understand what partitions you have, and how full they are. Unallocated space will only be available if the disk drive is larger than the maximum size allocation of each partition. This will be a drive larger than approximately 350GB, as the size of RAM in the computer will impact the size of swap space and the /var partition. Automatic disk allocation is fine for most purposes, but it doesn't meet requirements for port builders. Java is one of the larger ports. Last edited by jggimi; 16th July 2016 at 12:19 PM. Reason: typos |
|
|||
Quote:
http://www.coderanch.com/t/600047/ja...-HOME-JRE-HOME As a bare minimum, you need to determine where java & javac are located. Variations of the following command will be your friend: $ find / -name java -print Quote:
Lastly, please post all ports questions in the correct subforum. Last edited by ocicat; 15th July 2016 at 11:24 PM. Reason: correct spelling |
|
|||
I didn't know about tanukiwrapper. I'll have to try that. I use a modified runplain.sh and run i2p in a chroot.
You're also going to want to build libjbigi. It's a lot faster. https://geti2p.net/en/misc/jbigi |
|
||||
Nureo, I've written a proposed update to the FAQ, and submitted it. It may be adopted, revised then adopted, or rejected. It might also be ignored.
http://marc.info/?l=openbsd-tech&m=146889176716894&w=2 |
Tags |
/usr, i2p, java, midori, ports |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
directory "USR" is full | philo_neo71 | OpenBSD Packages and Ports | 3 | 29th November 2014 07:25 PM |
Is there any BSD operating system running on the so called "Android Mini PC MK802" ? | bsdnotbdsm | General Hardware | 20 | 25th July 2013 02:35 AM |
Filesystem /var "stuck" at 105% full | daneric | OpenBSD General | 2 | 18th October 2012 06:18 PM |
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" | jb_daefo | Guides | 0 | 5th October 2009 09:31 PM |
Scripted sysinstall fails with "Command 'system' failed" | PeterSteele | FreeBSD Installation and Upgrading | 0 | 13th November 2008 11:31 PM |