CA-Installer fails for jv4linfo

Steps to reproduce

On matterhorn-users, Ryan Swiers reported that the CA installation script fails while installing jv4linfo.

(I just copy the mails):

From: Ryan Swiers ...

Ok, I think I finally got jv4linfo installed. Lars, thanks again for the
alternate source. The files are still unavailable through luniks, however.

In case it comes up again, here's the steps I took (caution: haven't tested
the capture agent yet, still going through the install):

1. Extracted jv4linfo-0.2.1-src.jar from jv4linfo-0.2.1-1.el6.src.rpm
(file from Lars:
http://lernfunk.de/matterhorn-repo/SRPMS/testing/CentOS/6/jv4linfo-0.2.1-1.el6.src.rpm
)
2. Then I did the following (based on instructions from
https://opencast.jira.com/wiki/pages/viewpage.action?pageId=17104929):

a. Opened terminal
b. cd to jar location
c. jar xf jv4linfo-0.2.1-src.jar
d. cd jv4linfo/src
e. Out of terminal, I downloaded libj4linfo-02.1.so from
http://repository.opencastproject.org/nexus/content/repositories/public/net/luniks/linux/jv4linfo/libjv4linfo/0.2.1/
f. Renamed libj4linfo-02.1.so to libj4linfo.so
g. Moved libj4linfo.so to the jv4linfo/lib folder
h. Back in terminal: sed -i
"s#\"\/usr\/lib\/jvm\/java-6-openjdk\/include\"#\"$JAVA_HOME\/include\"#g"
build.xml
i. ant
j. sudo cp ../lib/libjv4linfo.so /usr/lib

3. Then I went through the normal installation outlined at
https://opencast.jira.com/wiki/display/mh14/Install+Capture+Agent and had
success at the jv4linfo step.

Best to you all,
-Ryan Swiers

On Fri, Jun 21, 2013 at 8:59 PM, Ryan Swiers <rmswiers@gmail.com> wrote:

> Greg and Lars,
>
> Thanks a lot for your responses. I'll try these out and report back.
> Again, thank you for the help!
>
> -Ryan
>
>
> On Fri, Jun 21, 2013 at 7:12 PM, Lars Kiesow <lkiesow@uos.de> wrote:
>
>> Hi,
>> Waldemar told me a while ae that we definitly need it.
>> I have build a RPM for that. It's included in our Repo.
>>
>> You can also get the source RPM from us:
>>
>> http://lernfunk.de/matterhorn-repo/SRPMS/testing/CentOS/6/jv4linfo-0.2.1-1.el6.src.rpm
>>
>> If you don't have a system that uses RPMs: Just extract the files using
>> rpm2cpio and cpio.
>>
>> Lars
>>
>> On Fri, 21 Jun 2013 16:37:42 -0600
>> Greg Logan <greg.logan@usask.ca> wrote:
>>
>> > On 13-06-20 07:18 AM, Ryan Swiers wrote:
>> > > Hi,
>> > >
>> > > During the installation steps of 1.4
>> > > <https://opencast.jira.com/wiki/display/mh14/Install+Capture+Agent>,
>> > > the process seems to fail at this point:
>> > >
>> > > Updating package repositories... Done
>> > > All the necessary dependencies were already installed
>> > > Found java at /usr/lib/jvm/java-6-openjdk-amd64
>> > > Setting up java-6-openjdk-amd64 as the default jvm... Done
>> > > Installing jv4linfo... java.io.FileNotFoundException:
>> > > jv4linfo-0.2.1-src.jar (No such file or directory)
>> > > at java.io.FileInputStream.open(Native Method)
>> > > at java.io.FileInputStream.<init>(FileInputStream.java:137)
>> > > at java.io.FileInputStream.<init>(FileInputStream.java:96)
>> > > at sun.tools.jar.Main.run(Main.java:256)
>> > > at sun.tools.jar.Main.main(Main.java:1167)
>> > > ./install_dependencies.sh: line 202: cd: jv4linfo/src: No such file
>> > > or directory
>> > > sed: can't read build.xml: No such file or directory
>> > > sed: can't read build.xml: No such file or directory
>> > > Error building libjv4linfo.so
>> > >
>> > > I've tried a few attempts at changing the JV4LINFO_URL and
>> > > JV4LINFO_JAR to the files listed here
>> > > <
>> http://repository.opencastproject.org/nexus/content/groups/public/net/luniks/linux/jv4linfo/
>> >
>> > > but I don't think that's quite the thing to do (more likely, I
>> > > shouldn't be messing with it). Still, I get the same error with
>> > > changes or on a fresh run-through of the install (been trying this
>> > > since Monday). I do get a 404 at
>> > >
>> http://luniks.net/luniksnet/download/java/jv4linfo/jv4linfo-0.2.1-src.jar...is
>> > > there another place to get these files?
>> >
>> > Well, that's problematical. I would try the file from the opencast
>> > repository, but I would be surprised if that file is the one you
>> > need. Please let us know either way! I'm surprised the author of
>> > that library has removed it, does anyone (Adam? Some of the Osna
>> > folks?) know if we still need that library?
>> >
>> > G
>> >
>> > > Any help is very much appreciated.
>> > >
>> > > -Ryan
>> > >

Activity

Show:
Greg Logan
July 2, 2013, 8:57 PM

I'll apply this to 1.3.x and 1.4.x tomorrow, in the meantime the attached patch resolves the issue for 1.4 and newer (might for 1.3 as well, untested).

Greg Logan
July 26, 2013, 4:50 PM

Fixed in trunk with rev 15162, merged the full fix to 1.4.x with rev 15163, and the jv4linfo URL to 1.3.x with rev 15164.

Jonathan Lee
July 30, 2013, 11:53 PM

Unless the user has installed openjdk-7-jdk beforehand, the patched install.sh will fail for not finding any content in the java-7-openjdk-amd64 folder.

Greg Logan
August 1, 2013, 2:42 PM
Edited

That set of java versions is the allowed set of versions. It should work as long as you have a version of Java installed that matches...

Edit: Interesting, Ubuntu does stupid things with OpenJDK 6, like create an OpenJDK 7 folder and symlink one file in version 6. I'll roll the relevant change out in a sec here.

Greg Logan
August 1, 2013, 9:13 PM

Rolled the JDK version changes out of trunk with rev 15215, out of 1.4.x with rev 15216.

Fixed and reviewed

Assignee

Greg Logan

Reporter

Lars Kiesow

Severity

Non Functioning

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Major
Configure