Active Perl’s Package Manager: ppm

August 6th, 2008 Alex Posted in perl, programming, slackware Comments Off

It allows you to get Perl pre-compiled packages. You can avoid installing a C compiler which is needed for some packages (KinoSearch for example).

http://aspn.activestate.com/ASPN/Downloads/ActivePerl/PPM/

Alternate packages repositories:
http://cpan.uwinnipeg.ca/PPMPackages/10xx/

AddThis Social Bookmark Button

Compile MythTV 0.21 Slackbuild for Slackware 12.1

July 27th, 2008 Alex Posted in linux, slackware, video Comments Off

with the latest ffmpeg installed, I add to temporarily move the following directories in my home directory for the MythTV compilation to go smoothly:
/usr/include/libavcodec/
/usr/include/libavformat/
/usr/include/libavutil/

AddThis Social Bookmark Button

Slackware 12.1 packages

May 28th, 2008 Alex Posted in linux, slackware Comments Off

http://alexpb.com/download/slackware/12.1/packages/

AddThis Social Bookmark Button

Upgrade to Slackware 12.1

May 15th, 2008 Alex Posted in linux, slackware Comments Off

The instruction in UPGRADE.TXT worked fine but I also needed to reconfigure the NVIDIA
Video driver to have OpenGL subsystem working fine.

AddThis Social Bookmark Button

Move Rails Project From Windows to Slackware Linux

October 5th, 2006 Alex Posted in linux, slackware, windows Comments Off

So you want to move your Rails project from Windows to Slackware and your are using MySQL database?
Then you can fallow these step-by-step instructions.

Table of contents

  1. Backups
  2. Packages you’ll need
  3. Install Ruby
  4. Install Rubygems
  5. Install Rails
  6. Install MySQL gem
  7. Import your Database schema
  8. Edit config files
  1. BackupsFrom Windows, use mysqldump to create a backup of your database schema and data:
    c:mysqldump -u root -p Database_name > DB_backup.sql

    or to backup all database without the data

    c:mysqldump -u root -p --all-database --no-date > DB_backup.sql

    Next, copy your project directory and you database backup (DB_backup.sql) to a CD
    (or you can mount your windows partition from linux if they are on the same computer)

  2. Packages you’ll need
  3. Install Ruby
    ~$ sudo installpkg ruby-1.8.2-i686-1.tgz
  4. Install Ruby gems
    ~$ tar zxvf rubygems-0.8.10.tgz
    ~$ cd gems-0.8.10
    ~$ sudo ruby setup.rb
  5. Install Rails
    ~$ sudo gem install rails

    or to install latest beta:

    ~$ sudo gem install rails --source http://gems.rubyonrails.com
  6. Install Mysql gem (the first — are meant to be there)
    ~$ sudo gem install mysql --with-mysql-include=/usr/include/mysql 
    --with-mysql-lib=/usr/lib/mysql
  7. Import your Database schema
    ~$ mysqldump -u root --password='Yourpassword'
    mysql> create database database_name;
    mysql> exit
    ~$ mysqldump -u root --password='Yourpassword' 
    database_name > DB_backup.sql
  8. Edit files
    ~$ edit ~/yourproject/public/dispatch.*

    and change the first line to:

    #!/usr/bin/ruby

    (or wherever ruby binary is)

You should be all set.

AddThis Social Bookmark Button