Netbeans 6.5

I tried installing netbeans 6.5 from Index of /repositories/Education/openSUSE_11.0 on a 32bit system, but yast tells me netbeans-java requires libpthread.1()(64bit). For netbeans-cpp it requires libc.so.6()(64bit). Im wondering now whether I need to install these packages or the build is kinda messed up. I actually doubt I need to install glibc for a 64bit system.

Hi
Just installed it here via YaST without any issues, are you installing
manually? If so, you didn’t download x86_64 rpms?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.2-default
up 2 days 12:45, 1 user, load average: 0.21, 0.31, 0.27
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.82

No, I’m installing it via yast as well

http://wina2.ugent.be/~harald/error.jpg

Hi
Very strange indeed. Ok, what happens if you re-install glibc. The
other one is to check is the cache;


sudo /sbin/ldconfig --print-cache |grep 64
or
sudo /sbin/ldconfig --print-cache |grep libpthread


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.2-default
up 2 days 14:42, 1 user, load average: 0.07, 0.12, 0.26
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.82

Same problem here, and Yast will not allow the error to be ignored.

I am using a 64 bit system, so those libs should be installed. I did notice that the error is requesting libpthread.1()(64bit) which seems like an odd request. Here is the output from ldconfig:

/sbin/ldconfig --print-cache |grep libpthread
libpthread.so.0 (libc6,x86-64, OS ABI: Linux 2.6.4) => /lib64/libpthread.so.0
libpthread.so.0 (libc6, OS ABI: Linux 2.6.4) => /lib/libpthread.so.0

I think the packager may have got something wrong. I also notice that the link above to the “Education” repo is not the same one as provided in Yast, and had to be added manually. The Yast provided Education repo only has Netbeans 6.1

Hi
Ahhhh, good spotting. I tried to add the repo and it’s having errors.
Manually download the files and then use rpm -Uhv net* to install.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.2-default
up 2 days 17:02, 1 user, load average: 0.50, 0.51, 0.46
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.82

Hmmm…

If the repo is throwing errors, then maybe it is best to leave it alone. I think I will try the full download from netbeans.org first.

Hi
That was an error on my part adding the repository. I just had a look
at the src rpm and it uses the netbeans-6.5-200811100001-ml.zip source
file. I’m just downloading it to see if using that with the spec file
is any different…


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.2-default
up 2 days 20:44, 3 users, load average: 0.37, 0.35, 0.35
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.82

Hi
Well it looks like there are a few errors in the spec file for x86 (and
some others). Basically it was leaving a x86_64 library file and the
provides were trying to use it. I’m also sending an email to the
packager with my findings, but will post here how I built it from the
src rpm from the Education repository;


cp netbeans-6.5-4.1.src.rpm /usr/src/packages/SOURCES/
cd /usr/src/packages/SOURCES
rpm2cpio netbeans-6.5-4.1.src.rpm | cpio -idmv
vi netbean.spec

(here is a diff file to see what to add, don't add the >'s ;) )

127a128
> find . -type f -name "*.dll" -delete
131a133
> rm -rf profiler3/lib/deployed/cvm/windows
137a140,141
> find . -type f -name "*SunOS-sparc_64.so" -delete
> find . -type f -name "*SunOS-x86_64.so" -delete
154a159,161
> %ifnarch x86_64
> rm -rf cnd2/bin/unbuffer-Linux-x86_64.so
> %endif
168a176,179
> rm -rf profiler3/lib/deployed/jdk15/hpux-pa_risc2.0
> rm -rf profiler3/lib/deployed/jdk15/hpux-pa_risc2.0w
> rm -rf profiler3/lib/deployed/jdk16/hpux-pa_risc2.0
> rm -rf profiler3/lib/deployed/jdk16/hpux-pa_risc2.0w

(save and exit)

rpmbuild -ba netbeans.spec

It should now build all the rpms (including a new src rpm)
in /usr/src/packages/SRPMS/ and /usr/src/packages/RPMS/i586/ which can
be installed via rpm -Uhv /usr/src/packages/RPMS/i586/<name_of_rpm>

See before and after output here;
http://nopaste.com/p/a8bh9angg


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.2-default
up 2 days 23:15, 4 users, load average: 0.22, 0.73, 1.41
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.82

Hi

As the current maintainer of the netbeans package, there’s just to say: sorry for the inconvenience!

A big thanks to Malcom for the great job!

I’ve added the information from here to our openSUSE-Education Bugzilla: Bug 39 - Wrong dependencies of Netbeans 6.5
(feel free to use it with your account data you also use here)

Fixed package should be available in the Buildservice tomorrow.

With kind regards,
Lars

Hi Lars
Glad to be of assistance and also a big thanks for your prompt action to
resolve :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.2-default
up 3 days 11:53, 2 users, load average: 1.48, 0.81, 0.38
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.82

Fixed package should be in
Index of /repositories/Education/openSUSE_11.0
in a few minutes (building currently) - you should watch for the last changelog entry:

Wed Dec 3 18:59:12 CET 2008 - lars@linux-schulserver.de

  • fix oss-edu#39: Wrong dependencies of Netbeans 6.5
    thanks to harald_rombaut for testing and Malcolm for fixing!

via RepoView: Applications for education users (openSUSE_11.0) - and clicking on the netbeans package (which should be on the top of this page in a few minutes.

Lars

Hello,

I believe this is happening with the Factory repo as well…

Thanks,

Carlos H. Costa

Hi
It looks like the build are all complete now on the education for 11,
so I guess you just need to wait for the factory ones to complete, else
grab the source rpm and rebuild it;


rpmbuild --rebuild netbeans-6.5-5.1.src.rpm

Then install the rpms manually…


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.2-default
up 4 days 12:54, 1 user, load average: 0.24, 0.10, 0.03
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.82

Seems like it still hasn’t been updated.

Hi
The i586 packages were done a short time ago, it may take some time for
the mirrors to get them, so just download manually from the
repository and install with the sudo rpm -Uhv <name_of_rpm> :slight_smile:

Search here on netbeans Search to download
as the redirector may send you to a local mirror that hasn’t got them
yet.

If you don’t have java-devel installed (1.5 or 1.6 depending on what
your running) install that first.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.2-default
up 4 days 13:43, 1 user, load average: 0.00, 0.03, 0.07
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.82

It works now. Thx for the fast fix.