Best of Tech Support
When I run a Perl script (version 5.6.0) and try to print a number, for example, print 5;, the number will not be printed to the screen unless I include a newline character print 5,`\n';. If I change the shell to csh or ksh, the problem goes away. But if I set my shell to Bash or sh, the Perl script will not print the number to the screen, but it will print a string to the screen. My question is what do I need to change in the Bash shell to get it to work correctly with Perl?
—Blake Brezeale, firstname.lastname@example.org
You might have corrupted your Bash shell environment. In this case you can type reset at the shell prompt and press Enter.
—Usman S. Ansari, email@example.com
I'm running Mandrake 8.1, which comes with gcc 2.96. I tried updating my compiler to 3.0.x using the Mandrake update software, and now I show parts of gcc 2.96 installed and parts of 3.0.x installed. As a result, I can't compile anything anymore.
—Rich Till, firstname.lastname@example.org
You should first uninstall all the gcc pieces (2.96 and 3.0.x), including libstdc and anything that is directly dependent on gcc 2.96. When all the pieces are removed from the system, re-install gcc 3.0.x and all the necessary pieces. Resolve any conflicts during the gcc 3.0.x install.
—Usman S. Ansari, email@example.com
I am trying to install Red Hat Linux 7.2 on an Intel hardware machine with a DPT VI (Adaptec) hardware RAID 5 setup. I go through the installation process okay and partitions are created. When I finish the installation process and press Enter to boot up, however, I get the error messages:
creating root device mounting root filesystem mount: error 19 mounting ext3 pivotroot: pivot_root (/sysroot, /sysroot/initrd) failed:2 freeing unused kernel memory: 220K freed kernel panic: No init found Try passing init= option to kernel
—Byron Rendar, firstname.lastname@example.org
Ted Ts'o has written a solution for this problem at: www.redhat.com/mailing-lists/ext3-users/msg03575.html. You need to modify /etc/fstab; try mounting the root filesystem as ext2 if it cannot mount as ext3. Change the ext3 in /etc/fstab to ext3,ext2. (You can convert the ext2 filesystem to ext3 later.) A longer alternate solution also is available on the web site.
How do I connect to the Internet using digital cable? My provider is Cox in Oklahoma City, and they do not support Linux machines. My NIC is a Realtek 8139 10/100. SuSE Linux detects the card, and it's enabled with DHCP. During bootup my card is detected but no IP address is assigned.
—Matt Reynolds, email@example.com
Is your provider actually using the DHCP protocol? Some providers are switching to PPP over Ethernet, which is not compatible. Check with your local Cox office to be sure; Cox uses both, depending on where you are in the country. SuSE supports PPP over Ethernet, but it's documented under ADSL or T-DSL in the manual, and the YaST2 configuration screen is called “DSL configuration”. Install the pppoed package, and see sdb.suse.de/sdb/en/html/hoe_adsl_pppoe.html.
As I work with IP-telephony (Nortel), I need to use vendor-specific codes in my DHCP server. Is there any DHCP server out there for Linux where it is possible to use vendor/option codes higher than those the Red Hat distribution uses?
—Bjoern Arstad, firstname.lastname@example.org
If your DHCP option code isn't supported by name, you can include it in dhcpd.conf with:
option option-nnn 'value';
where nnn is the option code as a three-digit decimal number. See man dhcp-options-dhcpd.
—Don Marti, email@example.com
|Free Today: September Issue of Linux Journal (Retail value: $5.99)||Sep 27, 2016|
|nginx||Sep 27, 2016|
|Epiq Solutions' Sidekiq M.2||Sep 26, 2016|
|Nativ Disc||Sep 23, 2016|
|Android Browser Security--What You Haven't Been Told||Sep 22, 2016|
|The Many Paths to a Solution||Sep 21, 2016|
- Free Today: September Issue of Linux Journal (Retail value: $5.99)
- Android Browser Security--What You Haven't Been Told
- Readers' Choice Awards 2013
- Epiq Solutions' Sidekiq M.2
- The Many Paths to a Solution
- Nativ Disc
- Download "Linux Management with Red Hat Satellite: Measuring Business Impact and ROI"
- Synopsys' Coverity
- Tech Tip: Really Simple HTTP Server with Python
Pick up any e-commerce web or mobile app today, and you’ll be holding a mashup of interconnected applications and services from a variety of different providers. For instance, when you connect to Amazon’s e-commerce app, cookies, tags and pixels that are monitored by solutions like Exact Target, BazaarVoice, Bing, Shopzilla, Liveramp and Google Tag Manager track every action you take. You’re presented with special offers and coupons based on your viewing and buying patterns. If you find something you want for your birthday, a third party manages your wish list, which you can share through multiple social- media outlets or email to a friend. When you select something to buy, you find yourself presented with similar items as kind suggestions. And when you finally check out, you’re offered the ability to pay with promo codes, gifts cards, PayPal or a variety of credit cards.Get the Guide