Showing posts with label Fedora. Show all posts
Showing posts with label Fedora. Show all posts

Wednesday, December 15, 2010

Easiest way to instal HP printer in Fedora

I wanted to install my HP LaserJet 8150 and HP LaserJet 2430 Network printers in Fedora. I searched in the Internet but found many complected ways to install. After spending some time on the Internet and tried myself, I found the easiest way to install. I am writing the easiest way to install these printers.
1. type in the terminal
$system-config-printer
It brings one wizard.
2. Go to Edit menu and click on + New Printer
3. Select Internet Printing Protocol (if your printer is network printer, otherwise select LPT#1)
4. Click on Next then select HP and select model name
5. Finally when it ask Device URI, then give hp:/net/HP_LaserJet_8150_Series?ip=your.printer's.IP.Address
or
hp:/net/HP_LaserJet_2430?ip=your.printer's.ip.address

replace your.printer's.ip.address with IP Address of your printer.
eg. hp:/net/HP_LaserJet_8150_Series?ip=192.168.0.0
or, hp:/net/HP_LaserJet_2430?ip=192.168.0.0
6. Print test page.
Enjoy!!

Saturday, December 11, 2010

vector.tcc:452: error: expected unqualified-id before ‘(’ token

I wasted so much time to solve this problem, while compiling code in c++ in fedora 8.
Now I found out the problem. The problem was due to the not linking c++ in old version of gcc, as I installed older version of gcc.
Oh, god!! finally I found out the problem. I searched 2 days for the solution on the net.

cc: In member function ‘void std::vector<_tp,>::_M_range_insert(__gnu_cxx::__normal_iterator::_Tp_alloc_type::pointer, std::vector<_tp,> >, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)’:
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/vector.tcc:452: error: expected unqualified-id before ‘(’ token
make: *** [diffusion3/ns/difftimer.o] Error 1
Ns make failed!

Thursday, December 9, 2010

Error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

This error comes while installing some applications in Fedora.
It comes because libstdc++.so.5 is installed in other library folders, rather than /usr/lib. If you make symbolic link to /usr/lib from the folder where libstdc++.so.5 is installed. It's solved.

Dommand

ln -s /opt/gcc33/lib/libstdc++.so.5 /usr/lib/libstdc++.so.5

Remember that in my computer /opt/gcc33 is the folder where I have installed new gcc. It can be different in your computer. Just search the libstdc++.so.5.